Bug 885666 - crash in mozilla::places::::NotifyPlaceInfoCallback::Run. r=mak

This commit is contained in:
Asaf Romano 2013-06-24 13:59:36 -04:00
parent 0e4e36a4fc
commit 93f026ad8f

View File

@ -873,9 +873,12 @@ public:
if (!known) {
nsresult rv = mHistory->FetchPageInfo(place, &known);
if (NS_FAILED(rv)) {
nsCOMPtr<nsIRunnable> event =
new NotifyPlaceInfoCallback(mCallback, place, true, rv);
return NS_DispatchToMainThread(event);
if (mCallback) {
nsCOMPtr<nsIRunnable> event =
new NotifyPlaceInfoCallback(mCallback, place, true, rv);
return NS_DispatchToMainThread(event);
}
return NS_OK;
}
}