diff options
author | Muller, Alexander (A.) <amulle19@ford.com> | 2016-07-28 17:36:35 -0700 |
---|---|---|
committer | Muller, Alexander (A.) <amulle19@ford.com> | 2016-07-28 17:36:35 -0700 |
commit | 8d4b1b85328ea46a418389d7b67620c72ab60905 (patch) | |
tree | bb4f8f0201aab36538af9a0c215faea7c2606188 | |
parent | 9f0a635a2633f00e5b07a8048da521bb6259cd22 (diff) | |
download | sdl_ios-feature/touch_manager.tar.gz |
Added check for singleTapTimer nullability when canceling.feature/touch_manager
-rw-r--r-- | SmartDeviceLink/SDLTouchManager.m | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLTouchManager.m b/SmartDeviceLink/SDLTouchManager.m index f987191b7..fc023026f 100644 --- a/SmartDeviceLink/SDLTouchManager.m +++ b/SmartDeviceLink/SDLTouchManager.m @@ -272,6 +272,9 @@ static NSUInteger const MaximumNumberOfTouches = 2; } - (void)sdl_cancelSingleTapTimer { + if (self.singleTapTimer == NULL) { + return; + } dispatch_stop_timer(self.singleTapTimer); self.singleTapTimer = NULL; } |