Fixing NPE

This commit is contained in:
Joakim Erdfelt 2017-03-10 14:05:19 -07:00
parent e25007cb79
commit 95feaa6198
1 changed files with 6 additions and 0 deletions

View File

@ -129,6 +129,12 @@ public class PropertyUserStore extends AbstractLifeCycle implements PathWatcher.
*/
public void setConfigPath(File configFile)
{
if(configFile == null)
{
_configPath = null;
return;
}
_configPath = configFile.toPath();
}