summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRajith Muditha Attapattu <rajith@apache.org>2010-01-13 03:15:06 +0000
committerRajith Muditha Attapattu <rajith@apache.org>2010-01-13 03:15:06 +0000
commitac53f58b4387bc54b186a9ac3a8933ecce77790e (patch)
treeb540f6c2fdf64ffd53a0f71b23d8a9f1baca46c1
parent65489bc8e42a1c4136c6bd218d4ae673b53a1241 (diff)
downloadqpid-python-ac53f58b4387bc54b186a9ac3a8933ecce77790e.tar.gz
Added a null check for SASL client in the connectionOpenOk method
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@898634 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--java/common/src/main/java/org/apache/qpid/transport/ClientDelegate.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/common/src/main/java/org/apache/qpid/transport/ClientDelegate.java b/java/common/src/main/java/org/apache/qpid/transport/ClientDelegate.java
index 8828d30f52..5e67b822db 100644
--- a/java/common/src/main/java/org/apache/qpid/transport/ClientDelegate.java
+++ b/java/common/src/main/java/org/apache/qpid/transport/ClientDelegate.java
@@ -178,7 +178,7 @@ public class ClientDelegate extends ConnectionDelegate
@Override public void connectionOpenOk(Connection conn, ConnectionOpenOk ok)
{
SaslClient sc = conn.getSaslClient();
- if (sc.getMechanismName().equals("GSSAPI") && getUserID() != null)
+ if (sc != null && sc.getMechanismName().equals("GSSAPI") && getUserID() != null)
{
conn.setUserID(getUserID());
}