summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2019-04-04 16:22:40 -0400
committerJoel Fischer <joeljfischer@gmail.com>2019-04-04 16:22:40 -0400
commite86fc199ead0c98b2ba429769fd24359fc939359 (patch)
treedf637e4f36d71defdb8ca614eed966913b7400b3
parent183b18b55c8868949d620bbde0a13febe5415add (diff)
downloadsdl_ios-e86fc199ead0c98b2ba429769fd24359fc939359.tar.gz
Fix appServicesCapabilities not returning nil in some situations
-rw-r--r--SmartDeviceLink/SDLSystemCapabilityManager.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLSystemCapabilityManager.m b/SmartDeviceLink/SDLSystemCapabilityManager.m
index 50fc3e669..49accb79b 100644
--- a/SmartDeviceLink/SDLSystemCapabilityManager.m
+++ b/SmartDeviceLink/SDLSystemCapabilityManager.m
@@ -106,6 +106,8 @@ typedef NSString * SDLServiceID;
#pragma mark - Getters
- (nullable SDLAppServicesCapabilities *)appServicesCapabilities {
+ if (self.appServicesCapabilitiesDictionary.count == 0) { return nil; }
+
return [[SDLAppServicesCapabilities alloc] initWithAppServices:self.appServicesCapabilitiesDictionary.allValues];
}