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:26:39 UTC
svn commit: r1380216 -
/santuario/xml-security-java/branches/1.5.x-fixes/src/main/java/javax/xml/crypto/KeySelectorException.java
Author: coheigea
Date: Mon Sep 3 12:26:39 2012
New Revision: 1380216
URL: http://svn.apache.org/viewvc?rev=1380216&view=rev
Log:
[SANTUARIO-342] - NullPointer in javax.xml.crypto.KeySelectorException.printStackTrace
Modified:
santuario/xml-security-java/branches/1.5.x-fixes/src/main/java/javax/xml/crypto/KeySelectorException.java
Modified: santuario/xml-security-java/branches/1.5.x-fixes/src/main/java/javax/xml/crypto/KeySelectorException.java
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/branches/1.5.x-fixes/src/main/java/javax/xml/crypto/KeySelectorException.java?rev=1380216&r1=1380215&r2=1380216&view=diff
==============================================================================
--- santuario/xml-security-java/branches/1.5.x-fixes/src/main/java/javax/xml/crypto/KeySelectorException.java (original)
+++ santuario/xml-security-java/branches/1.5.x-fixes/src/main/java/javax/xml/crypto/KeySelectorException.java Mon Sep 3 12:26:39 2012
@@ -117,7 +117,9 @@ public class KeySelectorException extend
*/
public void printStackTrace() {
super.printStackTrace();
- cause.printStackTrace();
+ if (cause != null) {
+ cause.printStackTrace();
+ }
}
/**
@@ -128,7 +130,9 @@ public class KeySelectorException extend
*/
public void printStackTrace(PrintStream s) {
super.printStackTrace(s);
- cause.printStackTrace(s);
+ if (cause != null) {
+ cause.printStackTrace(s);
+ }
}
/**
@@ -139,6 +143,8 @@ public class KeySelectorException extend
*/
public void printStackTrace(PrintWriter s) {
super.printStackTrace(s);
- cause.printStackTrace(s);
+ if (cause != null) {
+ cause.printStackTrace(s);
+ }
}
}