diff --git a/java/s3/S3Uploads.java b/java/s3/S3Uploads.java index 25f2cb5..eb9a2ff 100644 --- a/java/s3/S3Uploads.java +++ b/java/s3/S3Uploads.java @@ -93,7 +93,7 @@ private void handleSignatureRequest(HttpServletRequest req, HttpServletResponse JsonElement contentJson = jsonParser.parse(req.getReader()); JsonObject jsonObject = contentJson.getAsJsonObject(); - if (req.getQueryString().contains("v4=true")) { + if (req.getQueryString() != null && req.getQueryString().contains("v4=true")) { handleV4SignatureRequest(jsonObject, contentJson, req, resp); } else {