diff --git a/mailnews/local/src/nsMailboxUrl.cpp b/mailnews/local/src/nsMailboxUrl.cpp index 9a2e223e9b2b..0d55b305e14a 100644 --- a/mailnews/local/src/nsMailboxUrl.cpp +++ b/mailnews/local/src/nsMailboxUrl.cpp @@ -277,7 +277,7 @@ NS_IMETHODIMP nsMailboxUrl::GetUri(char ** aURI) nsresult nsMailboxUrl::GetMsgHdrForKey(nsMsgKey msgKey, nsIMsgDBHdr ** aMsgHdr) { nsresult rv = NS_OK; - if (aMsgHdr) + if (aMsgHdr && m_filePath) { nsCOMPtr mailDBFactory; nsCOMPtr mailDB;