diff options
author | NicoleYarroch <nicole@livio.io> | 2018-05-14 11:29:10 -0400 |
---|---|---|
committer | NicoleYarroch <nicole@livio.io> | 2018-05-14 11:29:10 -0400 |
commit | e07ba4326ad4b87fbc37f8fba0457cc82be5c397 (patch) | |
tree | fd63c30cdfbe84d673b487ab8156f0699b973477 | |
parent | 7878345384848002c6022c90523222b8a5af8f43 (diff) | |
download | sdl_ios-e07ba4326ad4b87fbc37f8fba0457cc82be5c397.tar.gz |
Added check for `nil` menu handler
Signed-off-by: NicoleYarroch <nicole@livio.io>
-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 316b9590b..291cb8911 100644 --- a/SmartDeviceLink/SDLMenuManager.m +++ b/SmartDeviceLink/SDLMenuManager.m @@ -379,7 +379,7 @@ UInt32 const MenuCellIdMin = 1; - (BOOL)sdl_callHandlerForCells:(NSArray<SDLMenuCell *> *)cells command:(SDLOnCommand *)onCommand { for (SDLMenuCell *cell in cells) { - if (cell.cellId == onCommand.cmdID.unsignedIntegerValue) { + if (cell.cellId == onCommand.cmdID.unsignedIntegerValue && cell.handler != nil) { cell.handler(onCommand.triggerSource); return YES; } |