From 375a4ef6d077b585d9baba5573ce35c3aa5f050d Mon Sep 17 00:00:00 2001 From: "bienvenu%nventure.com" Date: Thu, 5 Jan 2006 19:52:12 +0000 Subject: [PATCH] fix crash running filter after the fact when a move/copy target folder is gone, sr=mscott 322283 --- mailnews/base/search/src/nsMsgFilterService.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mailnews/base/search/src/nsMsgFilterService.cpp b/mailnews/base/search/src/nsMsgFilterService.cpp index d5cf838e2020..ffd61663a147 100644 --- a/mailnews/base/search/src/nsMsgFilterService.cpp +++ b/mailnews/base/search/src/nsMsgFilterService.cpp @@ -139,11 +139,15 @@ NS_IMETHODIMP nsMsgFilterService::CloseFilterList(nsIMsgFilterList *filterList) /* save without deleting */ NS_IMETHODIMP nsMsgFilterService::SaveFilterList(nsIMsgFilterList *filterList, nsIFileSpec *filterFile) { - nsresult ret = NS_OK; + NS_ENSURE_ARG_POINTER(filterFile); + NS_ENSURE_ARG_POINTER(filterList); + + nsresult ret = NS_OK; nsCOMPtr tmpFiltersFile; nsCOMPtr realFiltersFile; nsCOMPtr parentDir; + nsSpecialSystemDirectory tmpFile(nsSpecialSystemDirectory::OS_TemporaryDirectory); tmpFile += "tmprules.dat";