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

git-svn-id: svn://10.0.0.236/trunk@240091 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
reed%reedloden.com
2007-11-29 07:04:26 +00:00
parent a2cad0c407
commit aec4bbbd71

View File

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