[platform] UIThemeProvider: log more details on errors loading theme.json, fix possible NPE

This commit is contained in:
Yann Cébron
2019-01-16 15:25:40 +01:00
parent e9fca7074f
commit a643a01775
@@ -32,7 +32,7 @@ public final class UIThemeProvider implements PluginAware {
}
catch (IOException e) {
Logger.getInstance(getClass()).warn("error loading UITheme '" + path + "', " +
"pluginId=" + myDescriptor.getPluginId().getIdString(), e);
"pluginId=" + (myDescriptor != null ? myDescriptor.getPluginId().getIdString() : "(none)"), e);
return null;
}
}