shell: fix only to access when shell is not NULL 19/266619/2 accepted/tizen/6.5/unified/20211129.211936 submit/tizen_6.5/20210604.071023 submit/tizen_6.5/20211129.081044
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>
Tue, 16 Nov 2021 09:22:45 +0000 (09:22 +0000)
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