All that we can really say with certainty is that you have an Apex class, TCL_Contact_ctrl
, with a method called getContactsCtrl
, that is throwing a Null Pointer Exception (NPE).
An NPE occurs when a developer tries to access an object that doesn't exist. To explain it to layperson, imagine someone gives you an address and invites you to their home. However, when you arrive, the address/home doesn't actually exist.
This is distinctly separate in programming from what we'd call an "empty" value; the house is there but nobody's home. Assuming it's not a logic bug, the user may have forgotten to fill in a field, so make sure they're filling everything in.
As a practical example, consider:
Integer x;
Integer y = 5;
Integer z = x / y;
Because the default value for a variable is null, we have not assigned a value to x. When we try to calculate z, we get an NPE. As you can tell, it's distinctly different than the number 0 in this example:
Integer x = 0;
Integer y = 5;
Integer z = x / y;
Here, we get the perfectly valid answer of 0. Nulls, and the associated NPEs, was once called by the original developer that introduced the concept of nulls as a "billion-dollar mistake." Many developers even fail to understand what an NPE is or how to fix it.
So, in the end, you might want to call in a developer to have them look at that code. Conceptually, well-written code should never, ever throw an NPE. They're completely avoidable 100% of the time with some effort and discipline. Training your users to work around NPEs is generally not a good idea. Getting someone in there to fix the code is.