From b1dd2d9bf849f82a7dcb3aedfc83e41d546ffb56 Mon Sep 17 00:00:00 2001 From: "Olli.Pettay%helsinki.fi" Date: Fri, 23 Mar 2007 17:32:34 +0000 Subject: [PATCH] Bug 375093, Crash [@ nsTypedSelection::ScrollIntoView] when right-clicking paste in input which then gets destroyed oninput, r+sr=dbaron git-svn-id: svn://10.0.0.236/trunk@222273 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsSelection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/layout/generic/nsSelection.cpp b/mozilla/layout/generic/nsSelection.cpp index 24722230151..3f041de4266 100644 --- a/mozilla/layout/generic/nsSelection.cpp +++ b/mozilla/layout/generic/nsSelection.cpp @@ -7287,7 +7287,7 @@ nsTypedSelection::ScrollIntoView(SelectionRegion aRegion, PRBool aIsSynchronous) // nsCOMPtr presShell; result = GetPresShell(getter_AddRefs(presShell)); - if (NS_FAILED(result)) + if (NS_FAILED(result) || !presShell) return result; nsCOMPtr caret; presShell->GetCaret(getter_AddRefs(caret));