Skip to content

Commit

Permalink
Add null check for common schema manager
Browse files Browse the repository at this point in the history
  • Loading branch information
tijsrademakers authored Aug 20, 2024
1 parent 0ae1701 commit f85122d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ public Void execute(CommandContext commandContext) {
String databaseSchemaUpdate = schemaOperation == null ? engineConfiguration.getDatabaseSchemaUpdate() : schemaOperation;
List<SchemaManager> schemaManagers = new ArrayList<>();
schemaManagers.add(engineConfiguration.getCommonSchemaManager());
if (engineConfiguration.getCommonSchemaManager() != null) {
schemaManagers.add(engineConfiguration.getCommonSchemaManager());
}
schemaManagers.add(engineConfiguration.getSchemaManager());

Map<String, SchemaManager> additionalSchemaManagers = engineConfiguration.getAdditionalSchemaManagers();
Expand Down

0 comments on commit f85122d

Please sign in to comment.