Skip to content

Commit

Permalink
Merge pull request #2372 from atlanhq/query-update-npe
Browse files Browse the repository at this point in the history
[master] Fix NPE while updarting Soft deleted Query
  • Loading branch information
nikhilbonte21 authored Sep 15, 2023
2 parents 1ffeebf + 692864a commit ebb5bf1
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 ebb5bf1

Please sign in to comment.