abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r609722 - /incubator/abdera/java/trunk/extensions/main/src/main/java/org/apache/abdera/ext/tombstones/TombstonesHelper.java
Date Mon, 07 Jan 2008 17:54:30 GMT
Author: jmsnell
Date: Mon Jan  7 09:54:28 2008
New Revision: 609722

URL: http://svn.apache.org/viewvc?rev=609722&view=rev
Log:
Fix a build error

Modified:
    incubator/abdera/java/trunk/extensions/main/src/main/java/org/apache/abdera/ext/tombstones/TombstonesHelper.java

Modified: incubator/abdera/java/trunk/extensions/main/src/main/java/org/apache/abdera/ext/tombstones/TombstonesHelper.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/main/src/main/java/org/apache/abdera/ext/tombstones/TombstonesHelper.java?rev=609722&r1=609721&r2=609722&view=diff
==============================================================================
--- incubator/abdera/java/trunk/extensions/main/src/main/java/org/apache/abdera/ext/tombstones/TombstonesHelper.java
(original)
+++ incubator/abdera/java/trunk/extensions/main/src/main/java/org/apache/abdera/ext/tombstones/TombstonesHelper.java
Mon Jan  7 09:54:28 2008
@@ -24,6 +24,7 @@
 import javax.xml.namespace.QName;
 
 import org.apache.abdera.model.AtomDate;
+import org.apache.abdera.model.Base;
 import org.apache.abdera.model.Entry;
 import org.apache.abdera.model.Feed;
 
@@ -59,7 +60,8 @@
       Tombstone tombstone = 
         source.getFactory().newExtensionElement(DELETED_ENTRY, source);
       tombstone.setRef(entry.getId());
-      if (entry.getParentElement().equals(source))
+      Base parent = entry.getParentElement();
+      if (parent != null && parent.equals(source))
         entry.discard();
       return tombstone;
   }



Mime
View raw message