Uploaded image for project: 'Webservices REST Module'
  1. Webservices REST Module
  2. RESTWS-469

NPE generating catalog

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Must
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.7
    • Labels:
      None
    • Complexity:
      Low

      Description

      If I go to .../ws/rest/v1/catalog I get an exception like:

      java.lang.NullPointerException at org.openmrs.module.webservices.docs.ResourceDocCreator.fillRepresentations(ResourceDocCreator.java:119)
      

      If any resource return null or throws an exception from newDelegate(), the whole catalog fails.

      For now I'm going to put a quick-fix in place to skip these resources.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              darius Darius Jazayeri [X] (Inactive)
              Reporter:
              darius Darius Jazayeri [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: