You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ba...@apache.org on 2008/03/25 09:06:41 UTC
svn commit: r640735 -
/commons/proper/jelly/trunk/src/java/org/apache/commons/jelly/parser/XMLParser.java
Author: bayard
Date: Tue Mar 25 01:06:39 2008
New Revision: 640735
URL: http://svn.apache.org/viewvc?rev=640735&view=rev
Log:
Null protection for the 'e' variable as per Fortify report
Modified:
commons/proper/jelly/trunk/src/java/org/apache/commons/jelly/parser/XMLParser.java
Modified: commons/proper/jelly/trunk/src/java/org/apache/commons/jelly/parser/XMLParser.java
URL: http://svn.apache.org/viewvc/commons/proper/jelly/trunk/src/java/org/apache/commons/jelly/parser/XMLParser.java?rev=640735&r1=640734&r2=640735&view=diff
==============================================================================
--- commons/proper/jelly/trunk/src/java/org/apache/commons/jelly/parser/XMLParser.java (original)
+++ commons/proper/jelly/trunk/src/java/org/apache/commons/jelly/parser/XMLParser.java Tue Mar 25 01:06:39 2008
@@ -1173,7 +1173,9 @@
*/
protected SAXException createSAXException(String message, Exception e) {
log.warn("Underlying exception: " + e);
- e.printStackTrace();
+ if (e != null) {
+ e.printStackTrace();
+ }
if (locator != null) {
String error =
"Error at ("