+ 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