You need to sign in to do that
Don't have an account?

visualforce form for custom object
Hello, I am fairly new to developing in Salesforce and am trying to create a form for a custom object and insert the information into the system. I have the form and custom controller created but it will not insert the newly created record into the database. I get the error "attempt to de-reference a null object". Any help would be appreciated.



Update your controller with following code:
You did initialize your resObj under a method which was not called at all, should be initialzed under contructor .
Marked solved if does work for you
All Answers
Update your controller with following code:
You did initialize your resObj under a method which was not called at all, should be initialzed under contructor .
Marked solved if does work for you