Skip to content

Commit

Permalink
tolerate database nulls in webhook operation configs (#18084)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfsiega-airbyte authored Oct 17, 2022
1 parent 4714a1c commit 70cbdd8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,8 @@ private StandardSyncOperation buildStandardSyncOperation(final Record record) {
.withOperatorType(Enums.toEnum(record.get(OPERATION.OPERATOR_TYPE, String.class), OperatorType.class).orElseThrow())
.withOperatorNormalization(Jsons.deserialize(record.get(OPERATION.OPERATOR_NORMALIZATION).data(), OperatorNormalization.class))
.withOperatorDbt(Jsons.deserialize(record.get(OPERATION.OPERATOR_DBT).data(), OperatorDbt.class))
.withOperatorWebhook(Jsons.deserialize(record.get(OPERATION.OPERATOR_WEBHOOK).data(), OperatorWebhook.class))
.withOperatorWebhook(record.get(OPERATION.OPERATOR_WEBHOOK) == null ? null
: Jsons.deserialize(record.get(OPERATION.OPERATOR_WEBHOOK).data(), OperatorWebhook.class))
.withTombstone(record.get(OPERATION.TOMBSTONE));
}

Expand Down

0 comments on commit 70cbdd8

Please sign in to comment.