From a7737ad40c0ddeacdb74a827444c6101a13f8b1f Mon Sep 17 00:00:00 2001 From: Jim Mathies Date: Fri, 21 Jun 2013 04:11:43 -0500 Subject: [PATCH] Bug 853857 - Check the result of CrashReporter::CheckForLastRunCrash. r=ted --- toolkit/crashreporter/nsExceptionHandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toolkit/crashreporter/nsExceptionHandler.cpp b/toolkit/crashreporter/nsExceptionHandler.cpp index a2c617a065e..61bc42a4ad5 100644 --- a/toolkit/crashreporter/nsExceptionHandler.cpp +++ b/toolkit/crashreporter/nsExceptionHandler.cpp @@ -2434,9 +2434,9 @@ CheckForLastRunCrash() #endif nsCOMPtr 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; }