зеркало из https://github.com/mozilla/pjs.git
Bug 376976 - "Crash [@ nsGlobalHistory::IsURLInHistory] null pointer dereference" [p=mook.moz+mozbz@gmail.com (Mook) r=Neil sr=biesi a1.9=damons]
This commit is contained in:
Родитель
1765956af4
Коммит
a26318027a
|
@ -1595,7 +1595,7 @@ nsGlobalHistory::GetSource(nsIRDFResource* aProperty,
|
|||
// XXX We could be more forgiving here, and check for literal
|
||||
// values as well.
|
||||
nsCOMPtr<nsIRDFResource> target = do_QueryInterface(aTarget);
|
||||
if (IsURLInHistory(target))
|
||||
if (target && IsURLInHistory(target))
|
||||
return CallQueryInterface(aTarget, aSource);
|
||||
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче