Skip to content

Commit d273c29

Browse files
committed
data2Object fixed
1 parent ce1d7d2 commit d273c29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CCSQLite/CCSQLite.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2453,7 +2453,7 @@ + (NSData *) object2Data : (id) object {
24532453
* @return return value description
24542454
*/
24552455
+ (id) data2Object : (id) data {
2456-
if ([data isKindOfClass:[NSArray class]] || [data isKindOfClass:[NSDictionary class]]) {
2456+
if (data && [data isKindOfClass:[NSData class]]) {
24572457
return [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
24582458
}
24592459

0 commit comments

Comments
 (0)