Skip to content

Commit 9691ba9

Browse files
committed
Fix null check.
1 parent 4b9bee9 commit 9691ba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/synapticloop/b2/request/B2ListPartsRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public B2ListPartsRequest(CloseableHttpClient client, B2AuthorizeAccountResponse
5555
if (startPartNumber != null) {
5656
this.addParameter(B2RequestProperties.KEY_START_PART_NUMBER, String.valueOf(startPartNumber));
5757
}
58-
if (startPartNumber != null) {
58+
if (maxPartCount != null) {
5959
this.addParameter(B2RequestProperties.KEY_MAX_PART_COUNT, String.valueOf(maxPartCount));
6060
}
6161
}

0 commit comments

Comments
 (0)