Details
-
Bug
-
Status: Closed
-
Must
-
Resolution: Fixed
-
OpenMRS 1.7.3, OpenMRS 1.8.3, OpenMRS 1.9.1, Platform 1.10.0
-
None
-
None
-
Low
Description
The designated concept id for "true" and "false" are stored as global properties within the system. The ConceptServiceImpl has two static variables, trueConcept and falseConcept, that stores these "true" and "false" concepts.
However, instead of loading the true and false concepts from the DB, ConceptServiceImpl initializes trueConcept and falseConcept by creating dummy concepts initialized with the appropriate concept ids. Therefore the trueConcept and falseConcept variables get random uuids, not the uuids of the underlying concepts. This is problematic--for one, starting in OpenMRS 1.9 object comparsions are done using uuids, so someObs.getValueAsBoolean() will always return null.
Gliffy Diagrams
Attachments
Issue Links
- caused
-
HTML-327 NullPointerException for boolean obs style=checkbox
-
- Closed
-