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 a02ec2165f
commit 2c7e3b4376

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;
}
}