Null check for existing tag
Fixing a NPE scenario. Steps to reproduce:
- Create a record with a
null
value fortags
metadata field - Try to update the record metadata with PATCH api with add or replace operation, with tags
RecordUtilImpl.java
will throw NPE at this line
recordMetadata.getTags().putAll(newTags);
, because recordMetadata.getTags() will return null