diff options
Diffstat (limited to 'mailnews/imap/src/nsImapMailFolder.cpp')
-rw-r--r-- | mailnews/imap/src/nsImapMailFolder.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mailnews/imap/src/nsImapMailFolder.cpp b/mailnews/imap/src/nsImapMailFolder.cpp index da1411cd08..1d08472bb9 100644 --- a/mailnews/imap/src/nsImapMailFolder.cpp +++ b/mailnews/imap/src/nsImapMailFolder.cpp @@ -1803,6 +1803,7 @@ nsImapMailFolder::GetImapIncomingServer(nsIImapIncomingServer **aImapIncomingSer if (NS_SUCCEEDED(GetServer(getter_AddRefs(server))) && server) { nsCOMPtr <nsIImapIncomingServer> incomingServer = do_QueryInterface(server); + NS_ENSURE_TRUE(incomingServer, NS_ERROR_NO_INTERFACE); incomingServer.swap(*aImapIncomingServer); return NS_OK; } |