From e5b211e7bc16281450bd6e59c5b6b592fe8dd657 Mon Sep 17 00:00:00 2001 From: Sung-Jin Park Date: Wed, 9 Jun 2021 13:29:44 +0900 Subject: [PATCH] shell: fix only to access when shell is not NULL Change-Id: I6116da03f55016df6c5f7271a39497e7ec2bc84c Signed-off-by: Sung-Jin Park --- src/shell/shell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shell/shell.c b/src/shell/shell.c index 15ad31b..018f9f1 100644 --- a/src/shell/shell.c +++ b/src/shell/shell.c @@ -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 -- 2.7.4