From bcf7ff6db0067cbac8bf19c326682096d2a577d2 Mon Sep 17 00:00:00 2001 From: "mscott%netscape.com" Date: Thu, 4 Mar 1999 20:10:20 +0000 Subject: [PATCH] Don't add a null urllistener... --- mailnews/base/src/nsUrlListenerManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailnews/base/src/nsUrlListenerManager.cpp b/mailnews/base/src/nsUrlListenerManager.cpp index c3454f6ae80..139a3e53343 100644 --- a/mailnews/base/src/nsUrlListenerManager.cpp +++ b/mailnews/base/src/nsUrlListenerManager.cpp @@ -48,7 +48,7 @@ NS_IMPL_THREADSAFE_ISUPPORTS(nsUrlListenerManager, nsIUrlListenerManager::GetIID nsresult nsUrlListenerManager::RegisterListener(nsIUrlListener * aUrlListener) { - if (m_listeners) + if (m_listeners && aUrlListener) m_listeners->AppendElement(aUrlListener); return NS_OK;