shell: fix only to access when shell is not NULL 15/266615/1 accepted/tizen/unified/20211129.092905 submit/tizen/20210604.071014 submit/tizen/20211129.081032
authorSung-Jin Park <sj76.park@samsung.com>
Wed, 9 Jun 2021 04:29:44 +0000 (13:29 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Wed, 9 Jun 2021 04:41:56 +0000 (13:41 +0900)
Change-Id: I6116da03f55016df6c5f7271a39497e7ec2bc84c
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
src/shell/shell.c

index 15ad31b..018f9f1 100644 (file)
@@ -977,7 +977,8 @@ tizen_policy_cb_unbind(struct wl_resource *resource)
 {
        headless_shell_t *shell = (headless_shell_t *)wl_resource_get_user_data(resource);
 
-       shell->tizen_policy = NULL;
+       if (shell)
+               shell->tizen_policy = NULL;
 }
 
 static void