sd/source/ui/unoidl/unomodel.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0dec0ffec52a7dc01ac3f8ef26bd5a7d12ac4cf2
Author: Miklos Vajna <[email protected]>
Date:   Mon Apr 11 09:16:13 2016 +0200

    cid#1358429 null pointer dereference
    
    Change-Id: Iec3e2218c356c5a3d01edc0aa55ad9fd18e957f2

diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index a44f12e..bb58cd2 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -2438,9 +2438,9 @@ void SdXImpressDocument::postMouseEvent(int nType, int 
nX, int nY, int nCount, i
     SolarMutexGuard aGuard;
 
     DrawViewShell* pViewShell = GetViewShell();
-    Window* pWindow = pViewShell->GetActiveWindow();
     if (!pViewShell)
         return;
+    Window* pWindow = pViewShell->GetActiveWindow();
 
     Point aPos(Point(convertTwipToMm100(nX), convertTwipToMm100(nY)));
     MouseEvent aEvent(aPos, nCount,
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to