abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r550693 - /incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMFactory.java
Date Tue, 26 Jun 2007 05:09:48 GMT
Author: jmsnell
Date: Mon Jun 25 22:09:46 2007
New Revision: 550693

URL: http://svn.apache.org/viewvc?view=rev&rev=550693
Log:
Bug fix. Fixing the last bug made another one appear. getElementWrapper is not properly dealing
with nulls

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?view=diff&rev=550693&r1=550692&r2=550693
==============================================================================
--- 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
Mon Jun 25 22:09:46 2007
@@ -798,6 +798,7 @@
   
   @SuppressWarnings("unchecked")
   public <T extends Element> T getElementWrapper(Element internal) {
+    if (internal == null) return null;
     String ns = internal.getQName().getNamespaceURI();
     return (T) ((ATOM_NS.equals(ns) || 
                  APP_NS.equals(ns) || 



Mime
View raw message