Fix NULL check 89/305089/1
authorKwanghoon Son <k.son@samsung.com>
Fri, 26 Jan 2024 09:26:54 +0000 (18:26 +0900)
committerKwanghoon Son <k.son@samsung.com>
Fri, 26 Jan 2024 09:30:04 +0000 (18:30 +0900)
commitbb01ab19483cc0029e22495824a1f1e974a9bc12
treed2045fa92c348134ea2450bd1ccfa801eeb2946d
parent5a237585b5f3fa414ac6ec95e9ec42554778fea7
Fix NULL check

Detect callback message could be null.

WID:62132701 After having been assigned to a NULL value at
mv_barcode_detect_open.cpp:240, pointer '0' is passed as 4th parameter
in call to function 'barcode_detected_cb' at
mv_barcode_detect_open.cpp:240, where it is dereferenced at
test_barcode.cpp:25.

Change-Id: I1f0938300bd39caaadd998ebac9ebc2b5ab39a04
Signed-off-by: Kwanghoon Son <k.son@samsung.com>
test/testsuites/barcode/test_barcode.cpp