Skip to content

Commit 7749ab5

Browse files
committed
SDK-523 reset JSONObject if we failed to parse correctly
1 parent 18cab13 commit 7749ab5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/android/io/branch/BranchSDK.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,7 @@ public void onDataFetched(BranchCrossPlatformId.BranchCPID branchCPID, BranchErr
896896
jsonObject.put("prob_cross_platform_ids", branchCPID.getProbabilisticCrossPlatformIds());
897897
} catch (Exception e) {
898898
// just send back and empty object on json error
899+
jsonObject = new JSONObject();
899900
}
900901

901902
Log.d(LCAT, jsonObject.toString());

0 commit comments

Comments
 (0)