Add missing null check logic 91/218391/2
authorhyunho <hhstark.kang@samsung.com>
Fri, 22 Nov 2019 02:18:46 +0000 (11:18 +0900)
committerHyunho Kang <hhstark.kang@samsung.com>
Thu, 28 Nov 2019 10:24:49 +0000 (10:24 +0000)
Change-Id: I59f029bd9eafe0337ab01db1a572dc6162d7dec8
Signed-off-by: hyunho <hhstark.kang@samsung.com>
notification-ex/stub.cc

index 45f5c1a..74d1a84 100644 (file)
@@ -1653,7 +1653,7 @@ extern "C" EXPORT_API int noti_ex_style_set_background_color(
 
 extern "C" EXPORT_API int noti_ex_led_info_create(noti_ex_led_info_h *handle,
     noti_ex_color_h color) {
-  if (handle == nullptr) {
+  if (handle == nullptr || color == nullptr) {
     LOGE("Invalid parameter");
     return NOTI_EX_ERROR_INVALID_PARAMETER;
   }