You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ra...@apache.org on 2010/02/18 05:11:08 UTC

svn commit: r911249 - /qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java

Author: rajith
Date: Thu Feb 18 04:11:08 2010
New Revision: 911249

URL: http://svn.apache.org/viewvc?rev=911249&view=rev
Log:
added a null check for the exchange class - related to QPID-1831

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

Modified: qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java?rev=911249&r1=911248&r2=911249&view=diff
==============================================================================
--- qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java (original)
+++ qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java Thu Feb 18 04:11:08 2010
@@ -1024,7 +1024,8 @@
         
         if (match && assertNode)
         {
-            match =  (result.getDurable() == dest.isDurable()) &&
+            match =  (result.getDurable() == dest.isDurable()) && 
+                     (dest.getExchangeClass() != null) &&
                      (dest.getExchangeClass().asString().equals(result.getType())) &&
                      (matchProps(result.getArguments(),dest.getQueueOptions()));
         }



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org