agl-compositor: Add NULL check after creating surface/view 61/27061/1
authorAndyZhou <zhoumy@cn.fujitsu.com>
Wed, 22 Dec 2021 10:54:49 +0000 (18:54 +0800)
committerAndyZhou <zhoumy@cn.fujitsu.com>
Wed, 22 Dec 2021 10:54:49 +0000 (18:54 +0800)
commit838df78fe94e5bbb653bb123b2cb0aac1db0bfb1
treed4dfc9f9adee794b532a25e605a035d6a5e61a66
parent471a12ee38098aaac86e5a9a8e256fd88cd67c0a
agl-compositor: Add NULL check after creating surface/view

Add a check to verify if both the surface/view was created successfully
in function create_black_surface_view of src/shell.c file.

Bug-AGL: SPEC-4193

Signed-off-by: ZhouMingying <zhoumy@cn.fujitsu.com>
Change-Id: I69c6a6023c8b7a3b6e376f3cba25020a851648ab
src/shell.c