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 9af8ee20af
commit 6566a4ec52

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;
}