Got a scenerio that I have a concept am using though when I render the form it throws a NullPointer Exception yet I thought if a concept is not found it should throw something like cannot find concept of datatype = ' ' so in wat cases do we get NullPointer Exception
Hello, try to cross check and see that all variables or form input datatype. This error occurs when you use a datatype that is not known to OpenMRS e.g. you used datatype “none” or you did not define the datatype which is not among the listed below;
Numeric - Stores numeric values (integer or decimal).
Coded - Represents a concept that has a predefined set of options or answers.
Coded with a list - Similar to Coded datatype, but with a specific list of options.
Coded with a set - Similar to Coded datatype, but with a set of options.
Text - Stores text data.
Text area - Allows multi-line text entry.
Date/Time - Stores both date and time values.
Date - Stores date values.
Time - Stores time values.
Boolean - Represents true or false values.
Structured Numeric - Stores a numeric value with units and references.
Complex - Used for storing complex data like images or files.
Check if your variables or form inputs are set to any of the above datatype.
NOTE: replace any datatype which doesn’t match any of the above
I dont think it exists, however it might be one way to tell you that you forgot to assign a datatype to a form input or you assigned a none recognised datatype