e_hwc: Add null checking condition 40/319140/2
authorJunkyeong Kim <jk0430.kim@samsung.com>
Tue, 15 Oct 2024 23:44:32 +0000 (08:44 +0900)
committerJunkyeong Kim <jk0430.kim@samsung.com>
Wed, 16 Oct 2024 05:29:18 +0000 (05:29 +0000)
Change-Id: Ieb4044028fa82dbec329f2f22732f63998af3268

src/bin/displaymgr/e_hwc.c

index 5294617fa2dc94bb63b25a8af59dd32eb7ae83d2..51dde8ab10b0316a449fa80f32358658ac3417de 100644 (file)
@@ -139,7 +139,8 @@ _e_hwc_tbm_surface_queue_alloc(void *data, int w, int h)
      tbm_surface_queue_reset(tqueue, w, h, tbm_surface_queue_get_format(tqueue));
 
    hwc->target_buffer_queue = tqueue;
-   e_comp_screen->tqueue = tqueue;
+   if (e_comp_screen)
+     e_comp_screen->tqueue = tqueue;
 
    EHINF("The tqueue(%p, %dx%d) is created.", hwc, tqueue, queue_w, queue_h);