From aec4bbbd7142ad1288fb4285ecb4edefafd1d0df Mon Sep 17 00:00:00 2001 From: "reed%reedloden.com" Date: Thu, 29 Nov 2007 07:04:26 +0000 Subject: [PATCH] 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 --- mozilla/toolkit/components/history/src/nsGlobalHistory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/toolkit/components/history/src/nsGlobalHistory.cpp b/mozilla/toolkit/components/history/src/nsGlobalHistory.cpp index ede5344299e..a004bf9bb54 100644 --- a/mozilla/toolkit/components/history/src/nsGlobalHistory.cpp +++ b/mozilla/toolkit/components/history/src/nsGlobalHistory.cpp @@ -1595,7 +1595,7 @@ nsGlobalHistory::GetSource(nsIRDFResource* aProperty, // XXX We could be more forgiving here, and check for literal // values as well. nsCOMPtr target = do_QueryInterface(aTarget); - if (IsURLInHistory(target)) + if (target && IsURLInHistory(target)) return CallQueryInterface(aTarget, aSource); }