From 9691ba9261dd94e438879b60fe68ace7a24ad39c Mon Sep 17 00:00:00 2001 From: David Kocher Date: Sat, 23 Nov 2024 16:06:39 +0100 Subject: [PATCH] Fix null check. --- src/main/java/synapticloop/b2/request/B2ListPartsRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } }