Bug 525052 - crash running filter [@ nsMsgFilterService::ApplyFilters(int, nsIArray*, nsIMsgFolder*, nsIMsgWindow*)]. r/sr/a=bienvenu
authorKent James <kent@caspia.com>
Fri, 30 Oct 2009 10:06:33 -0700
changeset 4270 df2bc1f9c0114e83683d7393d8d037d318461f9f
parent 4269 7933b52e249e0bb72c0ad45eb3bb03851c79815d
child 4271 0c9f0ab1b69f1b8202dac7c5b667ec73840d0f9a
push id3336
push userkent@caspia.com
push dateFri, 30 Oct 2009 17:09:01 +0000
treeherdercomm-central@df2bc1f9c011 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs525052
Bug 525052 - crash running filter [@ nsMsgFilterService::ApplyFilters(int, nsIArray*, nsIMsgFolder*, nsIMsgWindow*)]. r/sr/a=bienvenu
mailnews/base/search/src/nsMsgFilterService.cpp
--- a/mailnews/base/search/src/nsMsgFilterService.cpp
+++ b/mailnews/base/search/src/nsMsgFilterService.cpp
@@ -1003,16 +1003,17 @@ nsresult nsMsgApplyFiltersToMessages::Ru
   return AdvanceToNextFolder();
 }
 
 NS_IMETHODIMP nsMsgFilterService::ApplyFilters(nsMsgFilterTypeType aFilterType,
                                                nsIArray *aMsgHdrList,
                                                nsIMsgFolder *aFolder,
                                                nsIMsgWindow *aMsgWindow)
 {
+  NS_ENSURE_ARG_POINTER(aFolder);
   nsCOMPtr<nsIMsgFilterList>    filterList;
   nsresult rv = aFolder->GetFilterList(aMsgWindow, getter_AddRefs(filterList));
   NS_ENSURE_SUCCESS(rv, rv);
 
   nsCOMPtr<nsISupportsArray>    folderList;
   rv = NS_NewISupportsArray( getter_AddRefs(folderList) );
   NS_ENSURE_SUCCESS(rv, rv);
   folderList->AppendElement(aFolder);