Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-1527

NPE thrown when log4j2 used within a webapp and RingBufferLogEvent's getFormattedMessage() is called.

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.6.2
    • 2.7
    • None
    • None

    Description

      This happens because 'messageText' is never initialized, therefore "return messageText.toString();" throws the NPE.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            rpopma Remko Popma
            leonj1 Jose Leon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment