shot - only access e client if not null
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 14 Apr 2015 22:39:58 +0000 (07:39 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 15 Apr 2015 01:02:12 +0000 (10:02 +0900)
src/modules/shot/e_mod_main.c

index 121a637..ad8b742 100644 (file)
@@ -868,7 +868,11 @@ _shot_now(E_Zone *zone, E_Client *ec, const char *params)
 
         if (!e_widget_focus_get(o_bg)) e_widget_focus_set(o_box, 1);
         if (ec)
-          evas_object_layer_set(e_win_client_get(win)->frame, ec->layer);
+          {
+             E_Client *c = e_win_client_get(win);
+
+             if (c) evas_object_layer_set(c->frame, ec->layer);
+          }
      }
 }