quickpanel: Add a code to check if null before referencing pointer. 75/103575/1
authorSeunghun Lee <shiin.lee@samsung.com>
Fri, 9 Dec 2016 00:49:27 +0000 (09:49 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Fri, 9 Dec 2016 00:51:55 +0000 (09:51 +0900)
Change-Id: I7a80024d8e95326649d6107b4e4a73c3054183ab

src/bin/services/e_service_quickpanel.c

index 625959131c2d51f5114e737c8f7b5ab11afaf1c4..0e83b05b9c19a1e4290d0fdb997afc8d6837f30e 100644 (file)
@@ -1288,7 +1288,8 @@ _quickpanel_idle_enter(void *data)
               * hide the quickpanel, if below client is the stacking client.
               * it means to find out whether or not it was launched.
               */
-             if (qp->below->icccm.accepts_focus)
+             if ((qp->below) &&
+                 (qp->below->icccm.accepts_focus))
                {
                   if ((qp->stacking == below) &&
                       (qp->ec->visible))