Skip to content

Commit

Permalink
Minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bichitra95 committed Apr 16, 2024
1 parent 723286a commit 3e6f1b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ private void datasetAttributeSync(EntityMutationContext context, AtlasEntity ass
AtlasEntity entity = new AtlasEntity(associatedAsset.getTypeName());
entity.setGuid(associatedAsset.getGuid());
entity.setAttribute(QUALIFIED_NAME, associatedAsset.getAttribute(QUALIFIED_NAME));
if (!associatedAsset.getAttribute(ASSET_ATTR_HAS_CONTRACT).equals(true)) {
if (associatedAsset.getAttribute(ASSET_ATTR_HAS_CONTRACT) == null || associatedAsset.getAttribute(ASSET_ATTR_HAS_CONTRACT).equals(false)) {
entity.setAttribute(ASSET_ATTR_HAS_CONTRACT, true);
}
entity.setAttribute(ASSET_ATTR_CONTRACT_VERSION_QUALIFIED_NAME, contractAsset.getAttribute(QUALIFIED_NAME));
Expand Down

0 comments on commit 3e6f1b2

Please sign in to comment.