testing possible fix for deserializing feeds with empty site urls

This commit is contained in:
thunder@thunder-mbp.pavlov.net 2007-10-19 19:57:39 -07:00
parent 8e716dce30
commit 6e1eec843c

View File

@ -1543,8 +1543,10 @@ function makeFile(path) {
}
function makeURI(URIString) {
var ioservice = Cc["@mozilla.org/network/io-service;1"].
getService(Ci.nsIIOService);
if (URIString === null || URIString == "")
return null;
let ioservice = Cc["@mozilla.org/network/io-service;1"].
getService(Ci.nsIIOService);
return ioservice.newURI(URIString, null, null);
}