summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2016-10-31 10:41:23 -0400
committerJoel Fischer <joeljfischer@gmail.com>2016-10-31 10:41:23 -0400
commitbf41f87e9e2ae0b0b602a7cbca4e95414f561030 (patch)
tree666a4cd197830f28077838af93a5e56086aaa030
parentf701422094db7482bc6ca5d240efbfb668fa1a46 (diff)
downloadsdl_ios-bf41f87e9e2ae0b0b602a7cbca4e95414f561030.tar.gz
Fix a crasher bug when an RAIR errors
-rw-r--r--SmartDeviceLink/SDLLifecycleManager.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLLifecycleManager.m b/SmartDeviceLink/SDLLifecycleManager.m
index 22a3a622e..4bbe498dd 100644
--- a/SmartDeviceLink/SDLLifecycleManager.m
+++ b/SmartDeviceLink/SDLLifecycleManager.m
@@ -196,6 +196,7 @@ SDLLifecycleState *const SDLLifecycleStateReady = @"Ready";
if (error != nil || ![response.success boolValue]) {
[SDLDebugTool logFormat:@"Failed to register the app. Error: %@, Response: %@", error, response];
[weakSelf.lifecycleStateMachine transitionToState:SDLLifecycleStateDisconnected];
+ return;
}
weakSelf.registerResponse = (SDLRegisterAppInterfaceResponse *)response;