[fix/common] Fix calling g_string_append with null
authorYongjoo Ahn <yongjoo1.ahn@samsung.com>
Tue, 22 Feb 2022 09:20:02 +0000 (18:20 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Wed, 2 Mar 2022 08:54:36 +0000 (17:54 +0900)
commit80798dfe495fc5731c61f8a3d82fae8fb0c67051
tree685230bb17b8b74e86795737698d9ae1a3d6c5a2
parent1a05d319e6383cad8533eef38a3406e8c0324064
[fix/common] Fix calling g_string_append with null

- Check null before call g_string_append
- This removes the logs `g_string_insert_len: assertion 'len == 0 || val != NULL' failed`

REF: #3666
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
gst/nnstreamer/nnstreamer_plugin_api_util_impl.c