Bug 291792 "undefined" folder created because installDroppedInFiles doesn't check for return value of getIDForLocation

patch by rob_strong@exchangecode.com r=bsmedberg a=bsmedberg
This commit is contained in:
timeless%mozdev.org 2005-06-16 04:03:39 +00:00
parent 02d3dbfd60
commit 74936419a6

View File

@ -2609,10 +2609,10 @@ ExtensionManager.prototype = {
installRDF.append(FILE_INSTALL_MANIFEST);
var id = location.getIDForLocation(entry);
if (!installRDF.exists() &&
!location.itemIsManagedIndependently(id))
if (!id || (!installRDF.exists() &&
!location.itemIsManagedIndependently(id)))
continue;
actualItems[id] = entry;
}
else {