summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2017-03-17 12:54:46 -0400
committerGitHub <noreply@github.com>2017-03-17 12:54:46 -0400
commit06422a5c65eb39d9c85cfc1cd1631444807bb5a6 (patch)
treeba6af118d21b010c50b62d08003464c958ba4f70
parent157e225f05ac1125e411c60b66b7196d9d2c8d0b (diff)
parentdc9dddbae99659d9c76c541bfaf6e114508bba7a (diff)
downloadsdl_ios-06422a5c65eb39d9c85cfc1cd1631444807bb5a6.tar.gz
Merge pull request #580 from smartdevicelink/hotfix/issue_579_apptype_reset
Setting nil appType should set it to default value.
-rw-r--r--SmartDeviceLink/SDLLifecycleConfiguration.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLLifecycleConfiguration.m b/SmartDeviceLink/SDLLifecycleConfiguration.m
index f1b8acf7e..efc9014b2 100644
--- a/SmartDeviceLink/SDLLifecycleConfiguration.m
+++ b/SmartDeviceLink/SDLLifecycleConfiguration.m
@@ -92,6 +92,7 @@ NS_ASSUME_NONNULL_BEGIN
- (void)setAppType:(nullable SDLAppHMIType *)appType {
if (appType == nil) {
_appType = [SDLAppHMIType DEFAULT];
+ return;
}
_appType = appType;