abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r488837 - /incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMExtensibleElement.java
Date Tue, 19 Dec 2006 22:38:01 GMT
Author: jmsnell
Date: Tue Dec 19 14:38:01 2006
New Revision: 488837

URL: http://svn.apache.org/viewvc?view=rev&rev=488837
Log:
Fixing a NPE the occurs when getting a null simple extension

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

Modified: incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMExtensibleElement.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMExtensibleElement.java?view=diff&rev=488837&r1=488836&r2=488837
==============================================================================
--- incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMExtensibleElement.java
(original)
+++ incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMExtensibleElement.java
Tue Dec 19 14:38:01 2006
@@ -155,7 +155,7 @@
   
   public String getSimpleExtension(QName qname) {
     Element el  = getExtension(qname);
-    return el.getText();
+    return (el != null) ? el.getText() : null;
   }
   
   public String getSimpleExtension(



Mime
View raw message