mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-05 05:30:29 +00:00
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:
parent
d7bccf6f0d
commit
c5fae70c3e
@ -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);
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user