Details
-
Bug
-
Status: Closed
-
Should
-
Resolution: Fixed
-
Platform 2.0.1
-
None
-
None
Description
When encounter with complex obs is added with new obs, it throws NullPointerException at https://github.com/openmrs/openmrs-core/blob/master/api/src/main/java/org/openmrs/api/impl/ObsServiceImpl.java#L222 . This happens because complex data is not loaded by default for complex obs but the check happens obs.getComplexData().getData()