diff --git a/src/main/java/synapticloop/b2/request/B2ListPartsRequest.java b/src/main/java/synapticloop/b2/request/B2ListPartsRequest.java index 49d6fb3..7a5d397 100644 --- a/src/main/java/synapticloop/b2/request/B2ListPartsRequest.java +++ b/src/main/java/synapticloop/b2/request/B2ListPartsRequest.java @@ -55,7 +55,7 @@ public B2ListPartsRequest(CloseableHttpClient client, B2AuthorizeAccountResponse if (startPartNumber != null) { this.addParameter(B2RequestProperties.KEY_START_PART_NUMBER, String.valueOf(startPartNumber)); } - if (startPartNumber != null) { + if (maxPartCount != null) { this.addParameter(B2RequestProperties.KEY_MAX_PART_COUNT, String.valueOf(maxPartCount)); } }