mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 886149 - Fix: Undefined last crash id can causes exception in delayed startup. r=bbondy
This commit is contained in:
parent
d496e6db48
commit
f35b19292f
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user