Bug 853857 - Check the result of CrashReporter::CheckForLastRunCrash. r=ted

This commit is contained in:
Jim Mathies 2013-06-21 04:11:43 -05:00
parent ec70c90a69
commit a7737ad40c

View File

@ -2434,9 +2434,9 @@ CheckForLastRunCrash()
#endif
nsCOMPtr<nsIFile> lastMinidumpFile;
CreateFileFromPath(lastMinidump.get(),
getter_AddRefs(lastMinidumpFile));
getter_AddRefs(lastMinidumpFile));
if (NS_FAILED(lastMinidumpFile->Exists(&exists)) || !exists) {
if (!lastMinidumpFile || NS_FAILED(lastMinidumpFile->Exists(&exists)) || !exists) {
return false;
}