abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r483191 - /incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java
Date Wed, 06 Dec 2006 19:34:38 GMT
Author: jmsnell
Date: Wed Dec  6 11:34:38 2006
New Revision: 483191

URL: http://svn.apache.org/viewvc?view=rev&rev=483191
Log:
Fix for http://issues.apache.org/jira/browse/ABDERA-24

Don't try to wrap a null.

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

Modified: incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java?view=diff&rev=483191&r1=483190&r2=483191
==============================================================================
--- incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java
(original)
+++ incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java
Wed Dec  6 11:34:38 2006
@@ -117,6 +117,7 @@
   }
   
   protected Element getWrapped(Element internal) {
+    if (internal == null) return null;
     FOMFactory factory = (FOMFactory) getFactory();
     return factory.getElementWrapper(internal);
   }



Mime
View raw message