Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-25860

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

    XMLWordPrintable

Details

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

    Description

      NOTE: This bug report is for Confluence Cloud. Using Confluence Server? 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: