Fix defect that is detected by static analisys tool (#5805)
authorurmain <wn.jang@samsung.com>
Wed, 6 Dec 2023 08:45:10 +0000 (17:45 +0900)
committerGitHub <noreply@github.com>
Wed, 6 Dec 2023 08:45:10 +0000 (17:45 +0900)
commit157b5965220bfa0373de42e92e927eb778193af4
treecaff0ec8cc7c9834333a4ad7c07204f313c41760
parent75d124a11360eebd5c1f49ccd837c677fd00df53
Fix defect that is detected by static analisys tool (#5805)

There is a portential problem with the code involving the variable 'e.OldItems'.
This variable is the result of a method invocation, and the tool is warning that the method
might return a null value, which can cause deferencing a null reference.
It might cause to crash or behave unpredictably.

Therefore, to prevent this, the variable 'e.OldItems' should be checked if it is null or not before use.
src/Tizen.Uix.VoiceControlManager/Tizen.Uix.VoiceControlManager/VoiceCommandsGroup.cs