diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2020-05-28 15:50:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-28 15:50:58 -0400 |
commit | 5e38806813060bd0d940169d0db05908a6399c98 (patch) | |
tree | 4b420d8ee31e7823ec1f786ac583ef07274a9cb4 | |
parent | 293a737b6ad2c1adcd17dd5b8cce23ba9495965b (diff) | |
parent | da87ad29cf7e36255b5036209778210e62a35ec5 (diff) | |
download | sdl_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.m | 2 |
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); |