abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r488838 - /incubator/abdera/java/branches/0.2.1-incubating/parser/src/main/java/org/apache/abdera/parser/stax/FOMExtensibleElement.java
Date Tue, 19 Dec 2006 22:39:08 GMT
Author: jmsnell
Date: Tue Dec 19 14:39:07 2006
New Revision: 488838

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

Modified:
    incubator/abdera/java/branches/0.2.1-incubating/parser/src/main/java/org/apache/abdera/parser/stax/FOMExtensibleElement.java

Modified: incubator/abdera/java/branches/0.2.1-incubating/parser/src/main/java/org/apache/abdera/parser/stax/FOMExtensibleElement.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/branches/0.2.1-incubating/parser/src/main/java/org/apache/abdera/parser/stax/FOMExtensibleElement.java?view=diff&rev=488838&r1=488837&r2=488838
==============================================================================
--- incubator/abdera/java/branches/0.2.1-incubating/parser/src/main/java/org/apache/abdera/parser/stax/FOMExtensibleElement.java
(original)
+++ incubator/abdera/java/branches/0.2.1-incubating/parser/src/main/java/org/apache/abdera/parser/stax/FOMExtensibleElement.java
Tue Dec 19 14:39:07 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