Null-check remote configuration in config manager

This field can be null if the config service do not find absolutely
anything in config table for the user.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2019-02-27 15:05:18 +01:00
parent 38b7ac1235
commit 29f1115d83

View File

@@ -155,7 +155,7 @@ public class ConfigManager
return;
}
if (configuration.getConfig().isEmpty())
if (configuration.getConfig() == null || configuration.getConfig().isEmpty())
{
log.debug("No configuration from client, using saved configuration on disk");
loadFromFile();