Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-9634

/json/docs/api fails to load due to NPE

    Details

    • Sprint:
      113 -"Dhole"- Team Tesla

      Description

      Steps to reproduce:

      • configure latest nightly
      • login as amadmin
      • try to access /json/docs/api

      The following stacktrace can be found by debugger:

      Caused by: java.lang.NullPointerException
              at org.forgerock.api.markup.ApiDocGenerator.outputResource(ApiDocGenerator.java:406)
              at org.forgerock.api.markup.ApiDocGenerator.outputPaths(ApiDocGenerator.java:321)
              at org.forgerock.api.markup.ApiDocGenerator.doExecute(ApiDocGenerator.java:208)
              at org.forgerock.api.markup.ApiDocGenerator.execute(ApiDocGenerator.java:201)
              at org.forgerock.openam.core.rest.docs.api.ApiDocsService.handle(ApiDocsService.java:138)
      

      This seems to happen because SmsCollectionProvider does not set the description on the resource.

      After fixing this bug there are other problems around query().description() and action().description as well.

        Attachments

          Activity

            People

            • Assignee:
              jamesphillpotts James Phillpotts
              Reporter:
              peter.major Peter Major [X] (Inactive)
              QA Assignee:
              Filip Kubáň [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: