diff options
author | lapinskijw <jlapinski.dev@gmail.com> | 2020-05-26 14:42:10 -0400 |
---|---|---|
committer | lapinskijw <jlapinski.dev@gmail.com> | 2020-05-26 14:42:10 -0400 |
commit | 2b6a57b712ed18c28d869e105b3cc2e025e89535 (patch) | |
tree | 06bd7b654146c6a2fd147f1e159eaf3ef9031041 | |
parent | 0e3be3d46d2558bf5e9b8b8f4417ce976149202c (diff) | |
download | sdl_ios-2b6a57b712ed18c28d869e105b3cc2e025e89535.tar.gz |
added empty check for menu cell voice commands
-rw-r--r-- | SmartDeviceLink/SDLMenuCell.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SmartDeviceLink/SDLMenuCell.m b/SmartDeviceLink/SDLMenuCell.m index 67281cb21..392f81a97 100644 --- a/SmartDeviceLink/SDLMenuCell.m +++ b/SmartDeviceLink/SDLMenuCell.m @@ -27,7 +27,7 @@ NS_ASSUME_NONNULL_BEGIN _title = title; _icon = icon; - _voiceCommands = voiceCommands; + _voiceCommands = ([voiceCommands count] == 0) ? nil : voiceCommands; _handler = handler; _cellId = UINT32_MAX; |