From ccfde38a8e4a5bf9b131300031e8d0b00d2efbed Mon Sep 17 00:00:00 2001 From: "pinkerton%netscape.com" Date: Tue, 15 May 2001 02:54:27 +0000 Subject: [PATCH] forgot a null check on the region when starting a drag. sr=sfraser. bug# 80818. git-svn-id: svn://10.0.0.236/trunk@94913 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/src/mac/nsDragService.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/widget/src/mac/nsDragService.cpp b/mozilla/widget/src/mac/nsDragService.cpp index e3f1cd90e08..ef004a49f32 100644 --- a/mozilla/widget/src/mac/nsDragService.cpp +++ b/mozilla/widget/src/mac/nsDragService.cpp @@ -287,7 +287,8 @@ nsDragService :: BuildDragRegion ( nsIScriptableRegion* inRegion, nsIDOMNode* in { PRBool retVal = PR_TRUE; nsCOMPtr geckoRegion; - inRegion->GetRegion(getter_AddRefs(geckoRegion)); + if ( inRegion ) + inRegion->GetRegion(getter_AddRefs(geckoRegion)); // create the drag region. Pull out the native mac region from the nsIRegion we're // given, copy it, inset it one pixel, and subtract them so we're left with just an