We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In [SDLRPCStruct initWithDictionary], there is no check whether the passed in dictionary is nil.
nil
-(id) initWithDictionary:(NSMutableDictionary*) dict { if (self = [super init]) { store = dict; } return self; }
This means that if any such object is initialized with a nil dictionary, then its properties cannot be edited.
There should be a check to see whether the passed in dictionary is nil, and if it is, then store should just be initialized with an empty dictionary.
store
-(id) initWithDictionary:(NSMutableDictionary*) dict { if (self = [super init]) { if (dict == nil) { store = [[NSMutableDictionary alloc] init]; } else { store = dict; } } return self; }
See also: #75
The text was updated successfully, but these errors were encountered:
Could use -initWithDictionary which if passed nil will create an empty dict.
-initWithDictionary
Sorry, something went wrong.
Fix SDLRPCStruct could initialize with nil store
9d58069
* Fixes #76
No branches or pull requests
In [SDLRPCStruct initWithDictionary], there is no check whether the passed in dictionary is
nil
.This means that if any such object is initialized with a
nil
dictionary, then its properties cannot be edited.There should be a check to see whether the passed in dictionary is
nil
, and if it is, thenstore
should just be initialized with an empty dictionary.See also: #75
The text was updated successfully, but these errors were encountered: