You need to sign in to do that
Don't have an account?
Jean Grey 10
Null Pointer Exception Error from new lines of code
I've added just a few lines of code for time zone handling and the page is now throwing an error on submit.
I added these lines in the submit method:
adjustment is a public variable declared in the top of the code.
Here is my error from the log (screenshot):
I added these lines in the submit method:
adjustment is a public variable declared in the top of the code.
Here is my error from the log (screenshot):
Place a system debug before line 248 to make sure your fields and variables has value and are not null:
Hope to have helped!
Regards.
Don't forget to mark your thread as 'SOLVED' with the answer that best helps you.
All Answers
Place a system debug before line 248 to make sure your fields and variables has value and are not null:
Hope to have helped!
Regards.
Don't forget to mark your thread as 'SOLVED' with the answer that best helps you.
Director is a lookup for the User sObject right? Can you please share your query? I also suggest you to run the same query in the Developer Console to see if it's working as expected.
Hope to have helped!
Regards.
Don't forget to mark your thread as 'SOLVED' with the answer that best helps you.
Regards