[jOOQ/jOOQ#7827] Prevent NPE in XMLDatabase#getSchemata0()

This commit is contained in:
Lukas Eder 2019-07-09 17:52:51 +02:00
parent ee79bc2641
commit 8c69160983

View File

@ -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;