Bug 382827 - "Error Message in Linux Terminal when adding an RSS Feed (NS_ERROR_NOT_AVAILABLE) [nsIAnnotationService.getItemAnnotationString]" [p=reed r=Mano a=blocking-firefox3+]

This commit is contained in:
reed@reedloden.com 2007-10-13 13:50:57 -07:00
parent d12c3005eb
commit 4f57f3b401

View File

@ -342,20 +342,14 @@ LivemarkService.prototype = {
* startup.
*/
getSiteURI: function LS_getSiteURI(container) {
try {
this._ensureLivemark(container);
// getItemAnnotation() can throw if there is no annotation
this._ensureLivemark(container);
if (this._ans.itemHasAnnotation(container, LMANNO_SITEURI)) {
var siteURIString =
this._ans.getItemAnnotation(container, LMANNO_SITEURI);
return gIoService.newURI(siteURIString, null, null);
}
catch (ex) {
// temporary logging, for bug #381894
LOG("getSiteURI failed: " + ex);
LOG("siteURIString: " + siteURIString);
}
return null;
},