diff options
author | Matt A. Tobin <email@mattatobin.com> | 2019-11-10 19:18:58 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2019-11-10 19:18:58 -0500 |
commit | ba48342fa708533e425fa9ad36f5a7b63da04c9c (patch) | |
tree | 745d866a5d2d7c375308bb8c9aaf5c925e2c386a /mailnews | |
parent | 818c1df5ef6ecd9648189cc5ff7b2c3d8d26ad9b (diff) | |
download | uxp-ba48342fa708533e425fa9ad36f5a7b63da04c9c.tar.gz |
Bug 1462316 - fix crash in nsAbView::OnItemAdded().
Tag #1273
Diffstat (limited to 'mailnews')
-rw-r--r-- | mailnews/addrbook/src/nsAbView.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mailnews/addrbook/src/nsAbView.cpp b/mailnews/addrbook/src/nsAbView.cpp index 77f3122dfe..aed4390de8 100644 --- a/mailnews/addrbook/src/nsAbView.cpp +++ b/mailnews/addrbook/src/nsAbView.cpp @@ -855,6 +855,9 @@ nsCString getQuery(nsCOMPtr<nsIAbDirectory> aDir) NS_IMETHODIMP nsAbView::OnItemAdded(nsISupports *parentDir, nsISupports *item) { + if (!mDirectory) // No address book selected. + return NS_OK; + nsresult rv; nsCOMPtr <nsIAbDirectory> directory = do_QueryInterface(parentDir, &rv); NS_ENSURE_SUCCESS(rv,rv); |