Skip to content

Commit

Permalink
fix exception handling for null throwable (#1423)
Browse files Browse the repository at this point in the history
Signed-off-by: Bala.FA <[email protected]>
  • Loading branch information
balamurugana committed Feb 14, 2023
1 parent 6016820 commit 574583e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/src/main/java/io/minio/S3Base.java
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public void throwEncapsulatedException(ExecutionException e)
| XmlParserException exc) {
throw exc;
} catch (Throwable exc) {
throw new RuntimeException(exc.getCause());
throw new RuntimeException(exc.getCause() == null ? exc : exc.getCause());
}
}

Expand Down
6 changes: 2 additions & 4 deletions functional/FunctionalTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -3849,10 +3849,8 @@ public static Process runMinio(boolean tls) throws Exception {
env.put("MINIO_ROOT_USER", "minio");
env.put("MINIO_ROOT_PASSWORD", "minio123");
env.put("MINIO_CI_CD", "1");
env.put("MINIO_KMS_KES_ENDPOINT", "https://play.min.io:7373");
env.put("MINIO_KMS_KES_KEY_FILE", "play.min.io.kes.root.key");
env.put("MINIO_KMS_KES_CERT_FILE", "play.min.io.kes.root.cert");
env.put("MINIO_KMS_KES_KEY_NAME", "my-minio-key");
// echo -n abcdefghijklmnopqrstuvwxyzABCDEF | base64 -
env.put("MINIO_KMS_SECRET_KEY", "my-minio-key:YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXpBQkNERUY=");
env.put("MINIO_NOTIFY_WEBHOOK_ENABLE_miniojavatest", "on");
env.put("MINIO_NOTIFY_WEBHOOK_ENDPOINT_miniojavatest", "http://example.org/");
sqsArn = "arn:minio:sqs::miniojavatest:webhook";
Expand Down

0 comments on commit 574583e

Please sign in to comment.