Fix defect that is detected by static analisys tool
authorwn.jang <wn.jang@samsung.com>
Mon, 4 Dec 2023 09:40:12 +0000 (18:40 +0900)
committerurmain <wn.jang@samsung.com>
Mon, 4 Dec 2023 10:14:30 +0000 (19:14 +0900)
commit9c7e3044902d33067bbb75db3da1a52424bd559a
treef0e41d1bc59a5ae79d29a187c236ed46f7c3afcb
parente07c537ad9b54ea938fc8eb64e5fb8bf35a58fd3
Fix defect that is detected by static analisys tool

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