Bug 694915 - crash nsNntpService::MessageURIToMsgHdr. r+a=Standard8 COMM80_20111031_RELBRANCH THUNDERBIRD_8_0b4_BUILD2 THUNDERBIRD_8_0b4_RELEASE
authorDavid Bienvenu <dbienvenu@mozilla.com>
Tue, 01 Nov 2011 19:25:25 +0000
branchCOMM80_20111031_RELBRANCH
changeset 8974 7d3a510fc227b4b4cb0f3ecc7db43f433664cb7e
parent 8973 7760a2b833fdd6830d9289b8c73f8dc640399005
child 8975 67917ec2820d52aa14e6bf6ddbe0f24f2ae4f301
push id217
push userbugzilla@standard8.plus.com
push dateTue, 01 Nov 2011 19:29:16 +0000
treeherdercomm-beta@7d3a510fc227 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs694915
Bug 694915 - crash nsNntpService::MessageURIToMsgHdr. r+a=Standard8
mailnews/news/src/nsNntpService.cpp
--- a/mailnews/news/src/nsNntpService.cpp
+++ b/mailnews/news/src/nsNntpService.cpp
@@ -1743,16 +1743,18 @@ nsNntpService::MessageURIToMsgHdr(const 
   NS_ENSURE_ARG_POINTER(_retval);
   nsresult rv = NS_OK;
 
   nsCOMPtr <nsIMsgFolder> folder;
   nsMsgKey msgKey;
 
   rv = DecomposeNewsMessageURI(uri, getter_AddRefs(folder), &msgKey);
   NS_ENSURE_SUCCESS(rv,rv);
+  if (!folder)
+    return NS_ERROR_NULL_POINTER;
 
   rv = folder->GetMessageHeader(msgKey, _retval);
   NS_ENSURE_SUCCESS(rv,rv);
   return NS_OK;
 }
 
 NS_IMETHODIMP
 nsNntpService::DownloadNewsgroupsForOffline(nsIMsgWindow *aMsgWindow, nsIUrlListener *aListener)