diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2019-04-04 16:22:40 -0400 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2019-04-04 16:22:40 -0400 |
commit | e86fc199ead0c98b2ba429769fd24359fc939359 (patch) | |
tree | df637e4f36d71defdb8ca614eed966913b7400b3 | |
parent | 183b18b55c8868949d620bbde0a13febe5415add (diff) | |
download | sdl_ios-e86fc199ead0c98b2ba429769fd24359fc939359.tar.gz |
Fix appServicesCapabilities not returning nil in some situations
-rw-r--r-- | SmartDeviceLink/SDLSystemCapabilityManager.m | 2 |
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]; } |