Skip to content

Commit

Permalink
Fixed schema NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
Gray Watson committed Sep 30, 2020
1 parent 060b0ec commit 622036f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ public static <T> DatabaseTableConfig<T> fromClass(DatabaseType databaseType, Cl
String schemaName = extractSchemaName(clazz);
if (databaseType.isEntityNamesMustBeUpCase()) {
tableName = databaseType.upCaseEntityName(tableName);
schemaName = databaseType.upCaseEntityName(schemaName);
if (schemaName != null) {
schemaName = databaseType.upCaseEntityName(schemaName);
}
}
return new DatabaseTableConfig<T>(databaseType, clazz, schemaName, tableName,
extractFieldTypes(databaseType, clazz, tableName));
Expand Down

0 comments on commit 622036f

Please sign in to comment.