This kind of error may arise at any sort of circumstances in Salesforce, please let us know what exactly are you trying to do and it would be really helpful to troubleshoot the issue if you post some code snippet here.
You will get this kind of error when you are referencing a null record in the page.If you are getting this on page load check your Constructor and see what you are querying in that and make sure that it returns some records.
This kind of error may arise at any sort of circumstances in Salesforce, please let us know what exactly are you trying to do and it would be really helpful to troubleshoot the issue if you post some code snippet here.
Thanks,
Nagendra
You will get this kind of error when you are referencing a null record in the page.If you are getting this on page load check your Constructor and see what you are querying in that and make sure that it returns some records.
Thanks,
Saikrishna