HDDS-1011. Fix NPE BucketManagerImpl.setBucketProperty. Contributed by Xiaoyu Yao.

This commit is contained in:
Bharat Viswanadham 2019-01-25 14:46:17 -08:00
parent 6cace58e21
commit fb69519e68

View File

@ -219,7 +219,9 @@ public Builder addMetadata(String key, String value) {
} }
public Builder addAllMetadata(Map<String, String> additionalMetadata) { public Builder addAllMetadata(Map<String, String> additionalMetadata) {
metadata.putAll(additionalMetadata); if (additionalMetadata != null) {
metadata.putAll(additionalMetadata);
}
return this; return this;
} }