You need to sign in to do that
Don't have an account?
Sravya Sadhu 4
Error:
Hi support,
Attempt to de-reference a null object Error is in expression '{!Save}' in component <apex:commandButton> in page createbusinessaccount: Class.AccountController.Save: line 21, column 1 An unexpected error has occurred. Your development organization has been notified
whenever i crete a record and click on save tthis error is showing.
Attempt to de-reference a null object Error is in expression '{!Save}' in component <apex:commandButton> in page createbusinessaccount: Class.AccountController.Save: line 21, column 1 An unexpected error has occurred. Your development organization has been notified
whenever i crete a record and click on save tthis error is showing.
I think you have written like this account ac;
you have to create first instance of that object.e.g.
account ac=new account();
then fill in details like
ac.name='something';
then
insert ac;
Regards
Nitesh