Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions YTKKeyValueStore/YTKKeyValueStore.m
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ - (void)putObject:(id)object withId:(NSString *)objectId intoTable:(NSString *)t
if ([YTKKeyValueStore checkTableName:tableName] == NO) {
return;
}
if (!object) {
debugLog(@"ERROR, faild to get json data, object can't be nil");
return;
}
NSError * error;
NSData * data = [NSJSONSerialization dataWithJSONObject:object options:0 error:&error];
if (error) {
Expand Down