struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stanlick <>
Subject Changing log level generates NPE
Date Mon, 02 Feb 2009 16:41:23 GMT

I added a file appender last night and set all logging to DEBUG.  Today I
started getting a NullPointerException at runtime.  I isolated the bug to
the XWorkMapPropertyAccessor class where 

    public void setProperty(Map context, Object target, Object name, Object
value) throws OgnlException {
        if (LOG.isDebugEnabled()) {

does not test the concatenated args against null.  I can avoid the bug by
modifying my, but this was a real brainteaser to discover.

View this message in context:
Sent from the Struts - Dev mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message