Skip to content

Null check for existing tag

Alok Joshi requested to merge patch_npe_fix into master

Fixing a NPE scenario. Steps to reproduce:

  • Create a record with a null value for tags metadata field
  • Try to update the record metadata with PATCH api with add or replace operation, with tags will throw NPE at this line recordMetadata.getTags().putAll(newTags);, because recordMetadata.getTags() will return null

Merge request reports