We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce1d7d2 commit d273c29Copy full SHA for d273c29
CCSQLite/CCSQLite.m
@@ -2453,7 +2453,7 @@ + (NSData *) object2Data : (id) object {
2453
* @return return value description
2454
*/
2455
+ (id) data2Object : (id) data {
2456
- if ([data isKindOfClass:[NSArray class]] || [data isKindOfClass:[NSDictionary class]]) {
+ if (data && [data isKindOfClass:[NSData class]]) {
2457
return [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
2458
}
2459
0 commit comments