+ Start a Discussion

System null pointer exception

i have created record types in my salesforce .

when i enter values in it after clicking the save button it is giving me the following error 

System.NullPointerException: Attempt to de-reference a null object 

Y is it happening? 


Sounds like you have a bug in an Apex trigger or if this is a VF page, your visualforce controller.


Did you get a stacktrace for the error?


Yes , please provide more info regarding the component in which got this error.