Author: markt
Date: Wed Feb 15 20:58:16 2012
New Revision: 1244719

URL: http://svn.apache.org/viewvc?rev=1244719&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=52671
Log NPEs for attributes that are not set at debug.

Modified:
    tomcat/trunk/java/org/apache/catalina/mbeans/MBeanDumper.java

Modified: tomcat/trunk/java/org/apache/catalina/mbeans/MBeanDumper.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/mbeans/MBeanDumper.java?rev=1244719&r1=1244718&r2=1244719&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/mbeans/MBeanDumper.java (original)
+++ tomcat/trunk/java/org/apache/catalina/mbeans/MBeanDumper.java Wed Feb 15 
20:58:16 2012
@@ -85,6 +85,9 @@ public class MBeanDumper {
                         if (cause instanceof UnsupportedOperationException) {
                             log.debug("Error getting attribute " + oname +
                                     " " + attName, rme);
+                        } else if (cause instanceof NullPointerException) {
+                            log.debug("Error getting attribute " + oname +
+                                    " " + attName, rme);
                         } else {
                             log.error("Error getting attribute " + oname +
                                     " " + attName, rme);



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to