Reduce error logs 97/255097/1
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 12 Mar 2021 04:06:01 +0000 (13:06 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 12 Mar 2021 04:06:01 +0000 (13:06 +0900)
To reduce unnecessary error logs, this patch adds if statement to check
that the paramter is nullptr.

Change-Id: I6645a22720f8e63e60715e53fb1e06931cdf4c99
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/rua_info.c

index 42df487..59fd2bb 100644 (file)
@@ -244,6 +244,9 @@ static void __rua_info_remove_comp_info(void *data)
 {
        aul_comp_info_h comp_info;
 
+       if (!data)
+               return;
+
        comp_info = (aul_comp_info_h)data;
        aul_comp_info_destroy(comp_info);
 }