diff options
author | Mihail Vyrko <mvyrko@qulix.com> | 2019-03-20 14:32:34 +0300 |
---|---|---|
committer | Mihail Vyrko <mvyrko@qulix.com> | 2019-03-20 14:32:34 +0300 |
commit | f9002ef9e158a7c0dd84e204345af83517a27361 (patch) | |
tree | fa4e3bc7b93d022c002d8a4e647a40593b22c7d1 /SmartDeviceLink/SDLSetInteriorVehicleData.m | |
parent | 48278d6ffa6dfea71f11a3dddb10f773fe56ba47 (diff) | |
download | sdl_ios-f9002ef9e158a7c0dd84e204345af83517a27361.tar.gz |
verify type of returned objects
Diffstat (limited to 'SmartDeviceLink/SDLSetInteriorVehicleData.m')
-rw-r--r-- | SmartDeviceLink/SDLSetInteriorVehicleData.m | 5 |
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 |