Skip to content

Commit 402d0ed

Browse files
talkingdatatalkingdata
authored andcommitted
update
1 parent 1d992b4 commit 402d0ed

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Assets/Plugins/iOS/TalkingDataSDK.mm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
static NSDictionary *TDCreateNSDictionary(const char *json) {
1717
NSString *valStr = TDCreateNSString(json);
1818
NSData *valData = [valStr dataUsingEncoding:NSUTF8StringEncoding];
19+
if (valData == nil) {
20+
return nil;
21+
}
22+
1923
return [NSJSONSerialization JSONObjectWithData:valData options:0 error:nil];
2024
}
2125

Assets/TalkingDataScripts/TalkingDataSDK.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// version: 5.0.2
1+
// version: 5.0.3
22

33
using UnityEngine;
44
using System.Collections.Generic;

0 commit comments

Comments
 (0)