summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLLightControlCapabilities.m
diff options
context:
space:
mode:
authorMihail Vyrko <mvyrko@qulix.com>2019-03-20 14:32:34 +0300
committerMihail Vyrko <mvyrko@qulix.com>2019-03-20 14:32:34 +0300
commitf9002ef9e158a7c0dd84e204345af83517a27361 (patch)
treefa4e3bc7b93d022c002d8a4e647a40593b22c7d1 /SmartDeviceLink/SDLLightControlCapabilities.m
parent48278d6ffa6dfea71f11a3dddb10f773fe56ba47 (diff)
downloadsdl_ios-f9002ef9e158a7c0dd84e204345af83517a27361.tar.gz
verify type of returned objects
Diffstat (limited to 'SmartDeviceLink/SDLLightControlCapabilities.m')
-rw-r--r--SmartDeviceLink/SDLLightControlCapabilities.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/SmartDeviceLink/SDLLightControlCapabilities.m b/SmartDeviceLink/SDLLightControlCapabilities.m
index 645a53ebd..3b8fa0328 100644
--- a/SmartDeviceLink/SDLLightControlCapabilities.m
+++ b/SmartDeviceLink/SDLLightControlCapabilities.m
@@ -27,7 +27,8 @@ NS_ASSUME_NONNULL_BEGIN
}
- (NSString *)moduleName {
- return [store sdl_objectForName:SDLRPCParameterNameModuleName];
+ NSError *error;
+ return [store sdl_objectForName:SDLRPCParameterNameModuleName ofClass:NSString.class error:&error];
}
- (void)setSupportedLights:(NSArray<SDLLightCapabilities *> *)supportedLights {
@@ -36,7 +37,8 @@ NS_ASSUME_NONNULL_BEGIN
}
- (NSArray<SDLLightCapabilities *> *)supportedLights {
- return [store sdl_objectsForName:SDLRPCParameterNameSupportedLights ofClass:SDLLightCapabilities.class];
+ NSError *error;
+ return [store sdl_objectsForName:SDLRPCParameterNameSupportedLights ofClass:SDLLightCapabilities.class error:&error];
}