Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-4965

Encounter with complex obs throws NullPointerException on save

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: Platform 2.0.1
    • Fix Version/s: Platform 2.0.1, Core 2.1.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      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()

        Attachments

          Activity

            People

            • Assignee:
              preethi.s Preethi S [X] (Inactive)
              Reporter:
              preethi.s Preethi S [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: