#1464 - NPE in PropertiesWrapper.internalGet(PropertiesWrapper.java:74) running multi-platform DB migration generation with ServerConfig that has no properties

Note that newPlatformConfig() is only used for multi-platform DB migration generation.
This commit is contained in:
rob bygrave
2018-08-07 11:55:06 +12:00
parent a161d0c01b
commit 75395a8481
@@ -3130,9 +3130,10 @@ public class ServerConfig {
* @return A copy of the PlatformConfig with overridden properties
*/
public PlatformConfig newPlatformConfig(String propertiesPath, String platformPrefix) {
if (properties == null) {
properties = new Properties();
}
PropertiesWrapper p = new PropertiesWrapper(propertiesPath, platformPrefix, properties, classLoadConfig);
PlatformConfig config = new PlatformConfig(platformConfig);
config.loadSettings(p);
return config;