You need to sign in to do that
Don't have an account?
Rajeev Ranjan 99
Manipulate Records with DML (Trailhead Challenge)
Challenge Not yet complete... here's what's wrong:
There was an unexpected error in your org which is preventing this assessment check from completing: System.NullPointerException: Attempt to de-reference a null object
There was an unexpected error in your org which is preventing this assessment check from completing: System.NullPointerException: Attempt to de-reference a null object
public class AccountHandler {
public static Account insertNewAccount (String name){
Account a = new Account(Name = name);
try
{
insert a;
} catch (DMLException e) {
return null;
}
{
return a;
}
}
}
Still I am getting below error:-
There was an unexpected error in your org which is preventing this assessment check from completing: System.NullPointerException: Attempt to de-reference a null object
below code working fine for me : , if you still getting same error then check if there any active triggers on account object, if yes then inactive those triggers, and validate again
Thanks
Let me inform if it helps you and kindly mark it best answer if it helps you so it make proper solution for others