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

NPE in DebugFileImpl if suffix date format is not configured

    Details

      Description

      If the suffix date format is not configured, the following NPE can be seen when accessing the configurator pages:

      java.lang.NullPointerException
      at com.sun.identity.shared.debug.file.impl.DebugFileImpl.toString(DebugFileImpl.java:309)
      at java.lang.String.valueOf(String.java:2847)
      at java.lang.StringBuilder.append(StringBuilder.java:128)
      at com.sun.identity.shared.debug.file.impl.DebugFileImpl.initialize(DebugFileImpl.java:212)
      at com.sun.identity.shared.debug.file.impl.DebugFileImpl.writeIt(DebugFileImpl.java:135)
      at com.sun.identity.shared.debug.impl.DebugImpl.writeIt(DebugImpl.java:258)
      at com.sun.identity.shared.debug.impl.DebugImpl.record(DebugImpl.java:232)
      at com.sun.identity.shared.debug.impl.DebugImpl.warning(DebugImpl.java:214)
      at com.sun.identity.shared.debug.Debug.warning(Debug.java:480)
      at com.sun.identity.setup.EmbeddedOpenDS.getOpenDSVersion(EmbeddedOpenDS.java:1414)
      at com.sun.identity.setup.EmbeddedOpenDS.isOpenDSVer1Installed(EmbeddedOpenDS.java:1363)
      at com.sun.identity.config.Options.doInit(Options.java:68)
      at com.sun.identity.config.util.TemplatedPage.onInit(TemplatedPage.java:88)
      at org.apache.click.ClickServlet.performOnInit(ClickServlet.java:674)
      

      This is because the toString implementation attempts to synchronize on a null field.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                quentin.castel Quentin CASTEL [X] (Inactive)
                Reporter:
                peter.major Peter Major [X] (Inactive)
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: