Bug 376976 - "Crash [@ nsGlobalHistory::IsURLInHistory] null pointer dereference" [p=mook.moz+mozbz@gmail.com (Mook) r=Neil sr=biesi (SeaMonkey only)]

This commit is contained in:
reed@reedloden.com 2007-11-26 23:41:07 -08:00
parent d7bccf6f0d
commit c5fae70c3e

View File

@ -1512,7 +1512,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);
}