Bug 723469 - RSS feeds are not properly recognized [rss2 feeds with isPermaLink=false and no link url only]. r=Standard8
authoralta88@gmail.com
Wed, 29 Feb 2012 15:59:29 +0000
changeset 10968 7bb995ee9fa3d28c6009d344f69f8a8d43d0e50d
parent 10967 3feeb4bdf8526c29be10fce5751841cf8dc19899
child 10969 5171fff86520088e139bf9f44b3f56df30ae475b
push id463
push userbugzilla@standard8.plus.com
push dateTue, 24 Apr 2012 17:34:51 +0000
treeherdercomm-beta@e53588e8f7b0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersStandard8
bugs723469
Bug 723469 - RSS feeds are not properly recognized [rss2 feeds with isPermaLink=false and no link url only]. r=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;
   },