logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikael Ståldal (JIRA) <j...@apache.org>
Subject [jira] [Commented] (LOG4J2-1530) LogEvent.getContextStack() can return null
Date Mon, 05 Sep 2016 13:40:21 GMT

    [ https://issues.apache.org/jira/browse/LOG4J2-1530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15465019#comment-15465019
] 

Mikael Ståldal commented on LOG4J2-1530:
----------------------------------------

[~remkop@yahoo.com] is this something you could fix?

> LogEvent.getContextStack() can return null
> ------------------------------------------
>
>                 Key: LOG4J2-1530
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1530
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.6.2
>            Reporter: Mikael Ståldal
>
> From the {{LogEvent}} interface:
> {code}
>     /**
>      * Gets the context stack (also known as Nested Diagnostic Context or NDC).
>      *
>      * @return The context stack, never {@code null}.
>      */
>     ThreadContext.ContextStack getContextStack();
> {code}
> This method does return {{null}} if nothing is added to the context stack.
> A {{MutableLogEvent}} is used, I suspect that it is not initialized correctly, [~remkop@yahoo.com]?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message