summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2020-05-28 15:50:58 -0400
committerGitHub <noreply@github.com>2020-05-28 15:50:58 -0400
commit5e38806813060bd0d940169d0db05908a6399c98 (patch)
tree4b420d8ee31e7823ec1f786ac583ef07274a9cb4
parent293a737b6ad2c1adcd17dd5b8cce23ba9495965b (diff)
parentda87ad29cf7e36255b5036209778210e62a35ec5 (diff)
downloadsdl_ios-5e38806813060bd0d940169d0db05908a6399c98.tar.gz
Merge pull request #1665 from smartdevicelink/bugfix/issue-1648-sdlmenucell-empty-voice-commands
Added empty check for menu cell voice commands array
-rw-r--r--SmartDeviceLink/SDLMenuManager.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/SmartDeviceLink/SDLMenuManager.m b/SmartDeviceLink/SDLMenuManager.m
index 031a21e5b..4d2d0737a 100644
--- a/SmartDeviceLink/SDLMenuManager.m
+++ b/SmartDeviceLink/SDLMenuManager.m
@@ -648,7 +648,7 @@ UInt32 const MenuCellIdMin = 1;
params.position = @(position);
command.menuParams = params;
- command.vrCommands = cell.voiceCommands;
+ command.vrCommands = (cell.voiceCommands.count == 0) ? nil : cell.voiceCommands;
command.cmdIcon = (cell.icon && shouldHaveArtwork) ? cell.icon.imageRPC : nil;
command.cmdID = @(cell.cellId);