Skip to content

Commit

Permalink
Update Deleted Queries fails with NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilbonte21 committed Sep 14, 2023
1 parent 7ab815c commit ee68736
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public static String updateQueryResourceAttributes(AtlasTypeRegistry typeRegistr
entity.setAttribute(QUALIFIED_NAME, qualifiedName);

//Check if parent attribute is changed
if (parentAttribute.getAttributeType().areEqualValues(currentParentObjectId, newParentObjectId, context.getGuidAssignments())) {
if (currentParentObjectId == null || parentAttribute.getAttributeType().areEqualValues(currentParentObjectId, newParentObjectId, context.getGuidAssignments())) {
return null;
}

Expand Down

0 comments on commit ee68736

Please sign in to comment.