You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
EventLookup throws NullPointerException for ${event:Message} when the event has no message #4502
EventLookup.lookup returns event.getMessage().getFormattedMessage() for the Message key without a null check (EventLookup.java:68). Log4jLogEvent accepts a null message, so ${event:Message} throws NullPointerException for such an event. The Marker key already checks for null (EventLookup.java:41).
StrSubstitutor catches it, so the expression stays literal, but every evaluation logs "Resolver failed to lookup event:Message" to the status logger.
Activity