Skip to content

Commit 8a47367

Browse files
avoid class cast exception (#893)
1 parent 9718fbc commit 8a47367

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Branch-SDK/src/main/java/io/branch/referral/BranchPostTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ private void onRequestFailed(ServerResponse serverResponse, int status) {
168168
}
169169

170170
// On a bad request or in case of a conflict notify with call back and remove the request.
171-
if (status == 400 || status == 409 && thisReq_ instanceof ServerRequestCreateUrl) {
171+
if ((status == 400 || status == 409) && thisReq_ instanceof ServerRequestCreateUrl) {
172172
((ServerRequestCreateUrl) thisReq_).handleDuplicateURLError();
173173
} else {
174174
//On Network error or Branch is down fail all the pending requests in the queue except

0 commit comments

Comments
 (0)