[#8118] NullPointerException in XMLDatabase, when no schemas could be loaded

This commit is contained in:
lukaseder 2018-12-14 13:03:05 +01:00
parent df54d660f4
commit f191c12d9e

View File

@ -132,6 +132,9 @@ public class XMLDatabase extends AbstractDatabase {
private InformationSchema info() {
if (info == null) {
// [#8118] Regardless of failure, prevent NPEs from subsequent calls
info = new InformationSchema();
// [#8115] Support old property name style for backwards compatibility reasons
final String xml = getProperties().getProperty("xmlFiles",
getProperties().getProperty("xmlFile",