Fix for Bug 9092.
--- a/core/com.nokia.carbide.cpp.news.reader/src/com/nokia/carbide/cpp/internal/news/reader/gen/FeedCache/FeedCacheManager.java Mon May 18 13:55:32 2009 -0500
+++ b/core/com.nokia.carbide.cpp.news.reader/src/com/nokia/carbide/cpp/internal/news/reader/gen/FeedCache/FeedCacheManager.java Wed May 20 13:32:51 2009 -0500
@@ -142,6 +142,9 @@
List<FeedType> cachedFeeds = feedCache.getFeeds().getFeed();
for (Iterator<FeedType> iterator = cachedFeeds.iterator(); iterator.hasNext();) {
FeedType cachedFeed = iterator.next();
+ if (cachedFeed == null) {
+ continue;
+ }
if (cachedFeed.getTitle().equals(feed.getTitle()) &&
cachedFeed.getLink().equals(feed.getLink())) {
return true;
@@ -284,6 +287,9 @@
EList<EntryType> entryList = entries.getEntry();
for (Iterator<CarbideSyndEntry> iterator = feed.getEntries().iterator(); iterator.hasNext();) {
CarbideSyndEntry feedEntry = iterator.next();
+ if (feedEntry == null) {
+ continue;
+ }
EntryType cachedEntry = FeedCacheFactory.eINSTANCE.createEntryType();
if (feedEntry.getDescription() != null) {
cachedEntry.setDescription(feedEntry.getDescription());
@@ -409,6 +415,9 @@
int index = -1;
for (Iterator<FeedType> iterator = cachedFeeds.iterator(); iterator.hasNext();) {
FeedType oldFeed = iterator.next();
+ if (oldFeed == null) {
+ continue;
+ }
if (oldFeed.getTitle().equals(newFeed.getTitle()) &&
oldFeed.getLink().equals(newFeed.getLink())) {
cachedUpdated = isCachedFeedOutOfSync(oldFeed, newFeed);