HADOOP-16742. NullPointerException in S3A MultiObjectDeleteSupport

Contributed by Tor Arvid Lund.

Change-Id: Iadfe9b2f355cf373031075bfbe681705a2c65bdc
This commit is contained in:
Steve Loughran 2021-05-04 10:49:52 +01:00
parent 041488e8f5
commit 68425eb469
No known key found for this signature in database
GPG Key ID: D22CF846DBB162A0

View File

@ -106,7 +106,7 @@ public static IOException translateDeleteException(
error.getMessage()); error.getMessage());
LOG.warn(item); LOG.warn(item);
result.append(item); result.append(item);
if (exitCode.isEmpty() || ACCESS_DENIED.equals(code)) { if (exitCode == null || exitCode.isEmpty() || ACCESS_DENIED.equals(code)) {
exitCode = code; exitCode = code;
} }
} }