ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1143502 - /webservices/wss4j/branches/1_5_x-fixes/src/org/apache/ws/security/WSDocInfo.java
Date Wed, 06 Jul 2011 17:11:49 GMT
Author: coheigea
Date: Wed Jul  6 17:11:48 2011
New Revision: 1143502

URL: http://svn.apache.org/viewvc?rev=1143502&view=rev
Log:
Fix for NPE.

Modified:
    webservices/wss4j/branches/1_5_x-fixes/src/org/apache/ws/security/WSDocInfo.java

Modified: webservices/wss4j/branches/1_5_x-fixes/src/org/apache/ws/security/WSDocInfo.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/branches/1_5_x-fixes/src/org/apache/ws/security/WSDocInfo.java?rev=1143502&r1=1143501&r2=1143502&view=diff
==============================================================================
--- webservices/wss4j/branches/1_5_x-fixes/src/org/apache/ws/security/WSDocInfo.java (original)
+++ webservices/wss4j/branches/1_5_x-fixes/src/org/apache/ws/security/WSDocInfo.java Wed Jul
 6 17:11:48 2011
@@ -61,7 +61,11 @@ public class WSDocInfo {
         // WSDocInfoStore.lookup(transformObject.getDocument())
         // will not work. 
         //
-        this.doc = doc.getDocumentElement().getOwnerDocument();
+        if (doc != null && doc.getDocumentElement() != null) {
+            this.doc = doc.getDocumentElement().getOwnerDocument();
+        } else {
+            this.doc = doc;
+        }
     }
     
     /**



Mime
View raw message