Bug 886149 - Fix: Undefined last crash id can causes exception in delayed startup. r=bbondy

This commit is contained in:
Jim Mathies 2013-06-23 16:09:34 -05:00
parent d496e6db48
commit f35b19292f

View File

@ -224,8 +224,13 @@ var BrowserUI = {
return false;
if (CrashReporter.enabled) {
var lastCrashID = Cc["@mozilla.org/xre/app-info;1"].getService(Ci.nsIXULAppInfo).lastRunCrashID;
if (lastCrashID.length) {
this.CrashSubmit.submit(lastCrashID);
if (lastCrashID && lastCrashID.length) {
Util.dumpLn("Submitting last crash id:", lastCrashID);
try {
this.CrashSubmit.submit(lastCrashID);
} catch (ex) {
Util.dumpLn(ex);
}
return true;
}
}