summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLSetInteriorVehicleData.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/SDLSetInteriorVehicleData.m
parent48278d6ffa6dfea71f11a3dddb10f773fe56ba47 (diff)
downloadsdl_ios-f9002ef9e158a7c0dd84e204345af83517a27361.tar.gz
verify type of returned objects
Diffstat (limited to 'SmartDeviceLink/SDLSetInteriorVehicleData.m')
-rw-r--r--SmartDeviceLink/SDLSetInteriorVehicleData.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/SmartDeviceLink/SDLSetInteriorVehicleData.m b/SmartDeviceLink/SDLSetInteriorVehicleData.m
index bbb875c83..7f99cc534 100644
--- a/SmartDeviceLink/SDLSetInteriorVehicleData.m
+++ b/SmartDeviceLink/SDLSetInteriorVehicleData.m
@@ -33,8 +33,9 @@ NS_ASSUME_NONNULL_BEGIN
[parameters sdl_setObject:moduleData forName:SDLRPCParameterNameModuleData];
}
-- (SDLModuleData *)moduleData {
- return [parameters sdl_objectForName:SDLRPCParameterNameModuleData ofClass:SDLModuleData.class];
+- (SDLModuleData *)moduleData {
+ NSError *error;
+ return [parameters sdl_objectForName:SDLRPCParameterNameModuleData ofClass:SDLModuleData.class error:&error];
}
@end