summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2016-01-27 10:13:24 -0500
committerJoel Fischer <joeljfischer@gmail.com>2016-01-27 10:13:24 -0500
commit91344693f3974eab01e4f6ca2dead343ff0ed3e7 (patch)
tree81bafb5fe6650f98672fa6434ff8f47a878fc956
parent0bbe7e1af53eb5a14793a4446eb92a0b9f8b163d (diff)
parentd6a8a6cd09dbe05653ce3ad2e402b074ca9726f2 (diff)
downloadsdl_ios-91344693f3974eab01e4f6ca2dead343ff0ed3e7.tar.gz
Merge branch 'hotfix/issue_76'
-rw-r--r--SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.m6
1 files changed, 5 insertions, 1 deletions
diff --git a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.m b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.m
index c6e516bef..86c352f1d 100644
--- a/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.m
+++ b/SmartDeviceLink-iOS/SmartDeviceLink/SDLRPCStruct.m
@@ -12,7 +12,11 @@
- (id)initWithDictionary:(NSMutableDictionary *)dict {
if (self = [super init]) {
- store = dict;
+ if (dict != nil) {
+ store = dict;
+ } else {
+ store = [[NSMutableDictionary alloc] init];
+ }
}
return self;
}