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:
reed@reedloden.com 2007-11-28 23:04:26 -08:00
Родитель 813575320a
Коммит c56f810b78
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1595,7 +1595,7 @@ nsGlobalHistory::GetSource(nsIRDFResource* aProperty,
// XXX We could be more forgiving here, and check for literal // XXX We could be more forgiving here, and check for literal
// values as well. // values as well.
nsCOMPtr<nsIRDFResource> target = do_QueryInterface(aTarget); nsCOMPtr<nsIRDFResource> target = do_QueryInterface(aTarget);
if (IsURLInHistory(target)) if (target && IsURLInHistory(target))
return CallQueryInterface(aTarget, aSource); return CallQueryInterface(aTarget, aSource);
} }