abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r530161 - /incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/wsse/WSSEAuthScheme.java
Date Wed, 18 Apr 2007 21:16:20 GMT
Author: jmsnell
Date: Wed Apr 18 14:16:19 2007
New Revision: 530161

URL: http://svn.apache.org/viewvc?view=rev&rev=530161
Log:
Fix a NPE that I'm not sure would actually ever happen.

Modified:
    incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/wsse/WSSEAuthScheme.java

Modified: incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/wsse/WSSEAuthScheme.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/wsse/WSSEAuthScheme.java?view=diff&rev=530161&r1=530160&r2=530161
==============================================================================
--- incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/wsse/WSSEAuthScheme.java
(original)
+++ incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/wsse/WSSEAuthScheme.java
Wed Apr 18 14:16:19 2007
@@ -59,7 +59,7 @@
                     "PasswordDigest=\"" + digest + "\", " +
                     "Nonce=\"" + nonce + "\", " +
                     "Created=\"" + now.getValue() + "\"";
-      method.addRequestHeader("X-WSSE", wsse);
+      if (method != null) method.addRequestHeader("X-WSSE", wsse);
       return "WSSE profile=\"UsernameToken\"";
     } else {
       return null;



Mime
View raw message