roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r557441 - in /roller/trunk: apps/planet/src/java/org/apache/roller/planet/business/fetcher/RomeFeedFetcher.java tools/roller-planet/roller-planet-business.jar
Date Thu, 19 Jul 2007 00:59:56 GMT
Author: agilliland
Date: Wed Jul 18 17:59:55 2007
New Revision: 557441

URL: http://svn.apache.org/viewvc?view=rev&rev=557441
Log:
fix potential null pointer if for some reason no last updated time can be found and it's left
as null.


Modified:
    roller/trunk/apps/planet/src/java/org/apache/roller/planet/business/fetcher/RomeFeedFetcher.java
    roller/trunk/tools/roller-planet/roller-planet-business.jar

Modified: roller/trunk/apps/planet/src/java/org/apache/roller/planet/business/fetcher/RomeFeedFetcher.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/planet/src/java/org/apache/roller/planet/business/fetcher/RomeFeedFetcher.java?view=diff&rev=557441&r1=557440&r2=557441
==============================================================================
--- roller/trunk/apps/planet/src/java/org/apache/roller/planet/business/fetcher/RomeFeedFetcher.java
(original)
+++ roller/trunk/apps/planet/src/java/org/apache/roller/planet/business/fetcher/RomeFeedFetcher.java
Wed Jul 18 17:59:55 2007
@@ -126,7 +126,8 @@
         }
         
         // check if feed is unchanged and bail now if so
-        if(lastModified != null && !newSub.getLastUpdated().after(lastModified))
{
+        if(lastModified != null && newSub.getLastUpdated() != null &&
+                !newSub.getLastUpdated().after(lastModified)) {
             return null;
         }
         

Modified: roller/trunk/tools/roller-planet/roller-planet-business.jar
URL: http://svn.apache.org/viewvc/roller/trunk/tools/roller-planet/roller-planet-business.jar?view=diff&rev=557441&r1=557440&r2=557441
==============================================================================
Binary files - no diff available.



Mime
View raw message