HADOOP-15827. NPE in DynamoDBMetadataStore.lambda$listChildren for root + auth S3Guard.
Contributed by Gabor Bota
This commit is contained in:
parent
d4626b4d18
commit
7ba1cfdea7
|
@ -630,7 +630,7 @@ public class DynamoDBMetadataStore implements MetadataStore {
|
|||
LOG.trace("Listing table {} in region {} for {} returning {}",
|
||||
tableName, region, path, metas);
|
||||
|
||||
return (metas.isEmpty() && dirPathMeta == null)
|
||||
return (metas.isEmpty() || dirPathMeta == null)
|
||||
? null
|
||||
: new DirListingMetadata(path, metas, isAuthoritative,
|
||||
dirPathMeta.getLastUpdated());
|
||||
|
|
Loading…
Reference in New Issue