Fix static analysis issue 95/271195/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 17 Feb 2022 00:20:39 +0000 (09:20 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 17 Feb 2022 00:20:39 +0000 (09:20 +0900)
- Fix FOWARD_NULL issue

Change-Id: I46dd4b554e98a2f90ae5424b16851cfc2f145d09
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
component_based/base/application_base.cc

index e57cdb5665dd8cdec03ab53a4f3906e1b37aab58..6e5c0504aeef6d66ab7944d124106d51b1122cac 100644 (file)
@@ -134,6 +134,9 @@ int ApplicationBase::OnReceive(aul_type type, tizen_base::Bundle b) {
     }
 
     LOGD("component(%s), instance(%s)", comp_id.c_str(), inst_id.c_str());
+  } else {
+    LOGE("Invalid request");
+    return -1;
   }
 
   switch (type) {