[jOOQ/jOOQ#7827] Prevent NPE in XMLDatabase#getSchemata0()
This commit is contained in:
parent
ee79bc2641
commit
8c69160983
@ -466,7 +466,8 @@ public class XMLDatabase extends AbstractDatabase {
|
||||
List<SchemaDefinition> result = new ArrayList<SchemaDefinition>();
|
||||
|
||||
for (Schema schema : info().getSchemata()) {
|
||||
result.add(new SchemaDefinition(this, schema.getSchemaName(), schema.getComment()));
|
||||
String schemaName = schema.getSchemaName();
|
||||
result.add(new SchemaDefinition(this, StringUtils.defaultIfNull(schemaName, ""), schema.getComment()));
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user