jspwiki-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ajaqu...@apache.org
Subject svn commit: r730421 - /incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/log/LoggerImpl.java
Date Wed, 31 Dec 2008 17:33:52 GMT
Author: ajaquith
Date: Wed Dec 31 09:33:52 2008
New Revision: 730421

URL: http://svn.apache.org/viewvc?rev=730421&view=rev
Log:
Bug fix: Fixed potential NPEs in LoggerImpl.

Modified:
    incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/log/LoggerImpl.java

Modified: incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/log/LoggerImpl.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/log/LoggerImpl.java?rev=730421&r1=730420&r2=730421&view=diff
==============================================================================
--- incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/log/LoggerImpl.java (original)
+++ incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/log/LoggerImpl.java Wed Dec 31 09:33:52
2008
@@ -143,24 +143,24 @@
     /** {@inheritDoc} */
     public boolean isErrorEnabled()
     {
-        return m_slf4jLogger.isErrorEnabled();
+        return m_slf4jLogger == null ? false : m_slf4jLogger.isErrorEnabled();
     }
 
     /** {@inheritDoc} */
     public boolean isWarnEnabled()
     {
-        return m_slf4jLogger.isWarnEnabled();
+        return m_slf4jLogger == null ? false : m_slf4jLogger.isWarnEnabled();
     }
 
     /** {@inheritDoc} */
     public boolean isInfoEnabled()
     {
-        return m_slf4jLogger.isInfoEnabled();
+        return m_slf4jLogger == null ? false : m_slf4jLogger.isInfoEnabled();
     }
 
     /** {@inheritDoc} */
     public boolean isDebugEnabled()
     {
-        return m_slf4jLogger.isDebugEnabled();
+        return m_slf4jLogger == null ? false : m_slf4jLogger.isDebugEnabled();
     }
 }



Mime
View raw message