abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r599869 - /incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java
Date Fri, 30 Nov 2007 16:45:59 GMT
Author: jmsnell
Date: Fri Nov 30 08:45:54 2007
New Revision: 599869

URL: http://svn.apache.org/viewvc?rev=599869&view=rev
Log:
fix NPE

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

Modified: incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java?rev=599869&r1=599868&r2=599869&view=diff
==============================================================================
--- incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java
(original)
+++ incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java
Fri Nov 30 08:45:54 2007
@@ -707,7 +707,9 @@
       } else if (parent instanceof ExtensibleElement || 
                  parent instanceof Document) {
         element = (OMElement) new FOMExtensibleElement(
-          qname.getLocalPart(), namespace, parent, this);
+          qname, parent, this);
+      } else {
+        element = (OMElement) new FOMExtensibleElement(qname,null,this);
       }
       return element;
     }



Mime
View raw message