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 00ba886a22
commit e944cc0338
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());
LOG.warn(item);
result.append(item);
if (exitCode.isEmpty() || ACCESS_DENIED.equals(code)) {
if (exitCode == null || exitCode.isEmpty() || ACCESS_DENIED.equals(code)) {
exitCode = code;
}
}