HDDS-1011. Fix NPE BucketManagerImpl.setBucketProperty. Contributed by Xiaoyu Yao.
This commit is contained in:
parent
6cace58e21
commit
fb69519e68
@ -219,7 +219,9 @@ public Builder addMetadata(String key, String value) {
|
||||
}
|
||||
|
||||
public Builder addAllMetadata(Map<String, String> additionalMetadata) {
|
||||
metadata.putAll(additionalMetadata);
|
||||
if (additionalMetadata != null) {
|
||||
metadata.putAll(additionalMetadata);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user