Bug 723469 - RSS feeds are not properly recognized [rss2 feeds with isPermaLink=false and no link url only]. r+a=Standard8 SEAMONKEY_2_8b5_BUILD1 SEAMONKEY_2_8b5_RELEASE
authoralta88@gmail.com
Wed, 29 Feb 2012 15:59:29 +0000
changeset 10220 45d5ebb045fee9e948aaa9ef2486131d0e0810fc
parent 10219 718999587ffa30ad9e6707a05404f2cceb43db78
child 10221 e5789dff3026875ba0763317cd2483430ede8aa5
child 10224 503595f53b2ec0fe1c43000bee6c32d60ab536ed
child 10232 4dce6be38579a8f34c4a3c655e7de8bff0546d66
push idunknown
push userunknown
push dateunknown
bugs723469
Bug 723469 - RSS feeds are not properly recognized [rss2 feeds with isPermaLink=false and no link url only]. r+a=Standard8
mailnews/extensions/newsblog/content/FeedItem.js
--- a/mailnews/extensions/newsblog/content/FeedItem.js
+++ b/mailnews/extensions/newsblog/content/FeedItem.js
@@ -92,18 +92,19 @@ FeedItem.prototype =
     {
       var ioService = Components.classes["@mozilla.org/network/io-service;1"]
                                 .getService(Components.interfaces.nsIIOService);
       this.mURL = ioService.newURI(aVal, null, null).spec;
     }
     catch(ex)
     {
       // The url as published or constructed can be a non url.  It's used as a
-      // feeditem identifier in feeditems.rdf and as a messageId.  Save as is.
-      this.mURL = aVal;
+      // feeditem identifier in feeditems.rdf, as a messageId, and as an href
+      // and for the content-base header.  Save as is; ensure not null.
+      this.mURL = aVal ? aVal : "";
     }
   },
 
   get date()
   {
     return this.mDate;
   },