function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Bhola VishwakarmaBhola Vishwakarma 

test class error

@isTestprivate class GoalControllerTest {

static GoalController goalTestCon;

static Account acc;

static GoalOutputController goalOutCon;

static GoalComponentController goalCompCon;

static GoalSummaryController goalSummary;

static Goal__c gol;public static void testData(){ 

acc=new Account(LastName='Account',FirstName='New Account',RecordTypeId='012N0000000083AIAQ'); 

upsert acc;   

system.assertNotEquals(null,acc.id);

 

i am getting an error in the following Line (System.Null pointer exception)

what should i do