abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r565958 - /incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMText.java
Date Tue, 14 Aug 2007 22:47:16 GMT
Author: jmsnell
Date: Tue Aug 14 15:47:15 2007
New Revision: 565958

URL: http://svn.apache.org/viewvc?view=rev&rev=565958
Log:
NPE when the value element is null

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

Modified: incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMText.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMText.java?view=diff&rev=565958&r1=565957&r2=565958
==============================================================================
--- incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMText.java
(original)
+++ incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMText.java
Tue Aug 14 15:47:15 2007
@@ -207,7 +207,7 @@
   public String getLanguage() {
     if (Type.XHTML.equals(type)) {
       Element el = getValueElement();
-      if (el.getAttributeValue(LANG) != null)
+      if (el != null && el.getAttributeValue(LANG) != null)
         return el.getAttributeValue(LANG);
     }
     return super.getLanguage();



Mime
View raw message