Skip to content

Commit

Permalink
fixed processing null Changes in MissingColumnChangeGeneratorDatabricks
Browse files Browse the repository at this point in the history
  • Loading branch information
KushnirykOleh committed Nov 27, 2024
1 parent 5409be1 commit 38655d3
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ public int getPriority(Class<? extends DatabaseObject> objectType, Database data
@Override
public Change[] fixMissing(DatabaseObject missingObject, DiffOutputControl control, Database referenceDatabase, Database comparisonDatabase, ChangeGeneratorChain chain) {
Change[] changes = super.fixMissing(missingObject, control, referenceDatabase, comparisonDatabase, chain);
changes = handleMissingColumnConstraints((Column) missingObject, control, changes);
return changes;
return changes == null ? null : handleMissingColumnConstraints((Column) missingObject, control, changes);
}

private Change[] handleMissingColumnConstraints(Column column, DiffOutputControl control, Change[] changes) {
Expand Down

0 comments on commit 38655d3

Please sign in to comment.