qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kw...@apache.org
Subject svn commit: r1750360 - /qpid/java/trunk/client/src/main/java/org/apache/qpid/client/AMQConnection.java
Date Mon, 27 Jun 2016 15:37:59 GMT
Author: kwall
Date: Mon Jun 27 15:37:59 2016
New Revision: 1750360

URL: http://svn.apache.org/viewvc?rev=1750360&view=rev
Log:
QPID-7323: [Java Client] Guard against an odd class causing a NPE

Modified:
    qpid/java/trunk/client/src/main/java/org/apache/qpid/client/AMQConnection.java

Modified: qpid/java/trunk/client/src/main/java/org/apache/qpid/client/AMQConnection.java
URL: http://svn.apache.org/viewvc/qpid/java/trunk/client/src/main/java/org/apache/qpid/client/AMQConnection.java?rev=1750360&r1=1750359&r2=1750360&view=diff
==============================================================================
--- qpid/java/trunk/client/src/main/java/org/apache/qpid/client/AMQConnection.java (original)
+++ qpid/java/trunk/client/src/main/java/org/apache/qpid/client/AMQConnection.java Mon Jun
27 15:37:59 2016
@@ -1983,11 +1983,16 @@ public class AMQConnection extends Close
             return true;
         }
 
-        while (clazz.isAnonymousClass() || clazz.isLocalClass())
+        while (clazz != null && (clazz.isAnonymousClass() || clazz.isLocalClass()))
         {
             clazz = clazz.getEnclosingClass();
         }
 
+        if (clazz == null || clazz.getCanonicalName() == null)
+        {
+            return false;
+        }
+
         String className = clazz.getCanonicalName();
 
         for (String blackListedClassHierarchy : _blackListedClassHierarchies)



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message