abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1374760 - /abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java
Date Sun, 19 Aug 2012 14:35:32 GMT
Author: veithen
Date: Sun Aug 19 14:35:32 2012
New Revision: 1374760

URL: http://svn.apache.org/viewvc?rev=1374760&view=rev
Log:
Avoid calling OMElement#removeAttribute(OMAttribute) with a null value.

Modified:
    abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java

Modified: abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java
URL: http://svn.apache.org/viewvc/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java?rev=1374760&r1=1374759&r2=1374760&view=diff
==============================================================================
--- abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java (original)
+++ abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java Sun
Aug 19 14:35:32 2012
@@ -260,7 +260,7 @@ public class FOMElement extends OMElemen
                 }
                 if (attr != null)
                     addAttribute(attr);
-            } else {
+            } else if (attr != null) {
                 removeAttribute(attr);
             }
         }



Mime
View raw message