Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-25860

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 4.2.8
    • None
    • None
    • None

    Description

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: