You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by co...@apache.org on 2012/09/03 14:41:42 UTC

svn commit: r1380221 - in /santuario/xml-security-java/branches/1.4.x-fixes: CHANGELOG.txt src/javax/xml/crypto/KeySelectorException.java

Author: coheigea
Date: Mon Sep  3 12:41:42 2012
New Revision: 1380221

URL: http://svn.apache.org/viewvc?rev=1380221&view=rev
Log:
[SANTUARIO-342] - NullPointer in javax.xml.crypto.KeySelectorException.printStackTrace


Conflicts:

	src/javax/xml/crypto/KeySelectorException.java

Modified:
    santuario/xml-security-java/branches/1.4.x-fixes/CHANGELOG.txt
    santuario/xml-security-java/branches/1.4.x-fixes/src/javax/xml/crypto/KeySelectorException.java

Modified: santuario/xml-security-java/branches/1.4.x-fixes/CHANGELOG.txt
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/branches/1.4.x-fixes/CHANGELOG.txt?rev=1380221&r1=1380220&r2=1380221&view=diff
==============================================================================
--- santuario/xml-security-java/branches/1.4.x-fixes/CHANGELOG.txt (original)
+++ santuario/xml-security-java/branches/1.4.x-fixes/CHANGELOG.txt Mon Sep  3 12:41:42 2012
@@ -1,6 +1,7 @@
 Changelog for "Apache xml-security" <http://santuario.apache.org/>
 
 New in v.1.4.8-SNAPSHOT:
+    Fixed SANTUARIO-342 - NullPointer in javax.xml.crypto.KeySelectorException.printStackTrace
     Fixed SANTUARIO-336 - Multiple race conditions in the ResolverDirectHttp implementation
     Fixed SANTUARIO-334 - UnsyncByteArrayOutputStream hangs on messages larger 512 MB.
 

Modified: santuario/xml-security-java/branches/1.4.x-fixes/src/javax/xml/crypto/KeySelectorException.java
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/branches/1.4.x-fixes/src/javax/xml/crypto/KeySelectorException.java?rev=1380221&r1=1380220&r2=1380221&view=diff
==============================================================================
--- santuario/xml-security-java/branches/1.4.x-fixes/src/javax/xml/crypto/KeySelectorException.java (original)
+++ santuario/xml-security-java/branches/1.4.x-fixes/src/javax/xml/crypto/KeySelectorException.java Mon Sep  3 12:41:42 2012
@@ -115,7 +115,9 @@ public class KeySelectorException extend
      */
     public void printStackTrace() {
 	super.printStackTrace();
-	//XXX print backtrace of cause
+        if (cause != null) {
+            cause.printStackTrace();
+        }
     }
 
     /**
@@ -126,7 +128,9 @@ public class KeySelectorException extend
      */
     public void printStackTrace(PrintStream s) {
 	super.printStackTrace(s);
-	//XXX print backtrace of cause
+        if (cause != null) {
+            cause.printStackTrace(s);
+        }
     }
 
     /**
@@ -137,6 +141,8 @@ public class KeySelectorException extend
      */
     public void printStackTrace(PrintWriter s) {
         super.printStackTrace(s);
-	//XXX print backtrace of cause
+        if (cause != null) {
+            cause.printStackTrace(s);
+        }
     }
 }