Skip to content

Commit 3da5771

Browse files
committed
SDK-523 make exception more specific.
1 parent 02b8441 commit 3da5771

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/android/io/branch/BranchSDK.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ public void onDataFetched(BranchCrossPlatformId.BranchCPID branchCPID, BranchErr
908908
jsonObject.put("cross_platform_id", branchCPID.getCrossPlatformID());
909909
jsonObject.put("past_cross_platform_ids", branchCPID.getPastCrossPlatformIds());
910910
jsonObject.put("prob_cross_platform_ids", branchCPID.getProbabilisticCrossPlatformIds());
911-
} catch (Exception e) {
911+
} catch (JSONException e) {
912912
// just send back and empty object on json error
913913
jsonObject = new JSONObject();
914914
}

0 commit comments

Comments
 (0)