Using ExceptionUtils.getRootCause(e).getMessage causes NPEs to be thrown

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 4.2.8
    • Affects Version/s: None
    • Component/s: None
    • None

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      ExceptionUtils.getRootCause(e) can return null, so it's not safe to tack on a getMessage() call. Instead, use ExceptionUtils.getRootCauseMessage(e).

            Assignee:
            JesperA
            Reporter:
            JesperA
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: