null check here in case someone decides to try crashing their compositor for fun?
authorMike Blumenkrantz <m.blumenkran@samsung.com>
Tue, 3 Sep 2013 13:09:38 +0000 (14:09 +0100)
committerMike Blumenkrantz <m.blumenkran@samsung.com>
Tue, 3 Sep 2013 13:09:38 +0000 (14:09 +0100)
src/modules/teamwork/e_mod_tw.c

index a78fc3dc7bac092aa0d9ca0475516bd1b6af5bbc..7081e5a26a4cc5cc6baa82177794efb2422e89c5 100644 (file)
@@ -784,6 +784,7 @@ tw_show_helper(Evas_Object *o, int w, int h)
 {
    int px, py, pw, ph;
    double ratio = tw_config->popup_size / 100.;
+   E_Border *bd = NULL;
 
    E_FREE_FUNC(tw_mod->pop, e_object_del);
    tw_mod->sticky = 0;
@@ -812,9 +813,8 @@ tw_show_helper(Evas_Object *o, int w, int h)
         if (py + ph > tw_mod->pop->zone->h)
           py = tw_mod->pop->zone->h - ph;
      }
-   else if (tw_win)
+   else if (tw_win && ((bd = e_border_find_by_client_window(tw_win))))
      {
-        E_Border *bd = e_border_find_by_client_window(tw_win);
         int x, y;
 
         x = bd->x + bd->client_inset.l + last_coords.x;