Avoid initial ERROR when no markers.yml file (first installation)

This commit is contained in:
Mike Primm 2021-12-10 00:10:11 -06:00
parent f40cc3d6ca
commit d5354898cb

View File

@ -80,7 +80,8 @@ public class ConfigurationNode implements Map<String, Object> {
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public boolean load() { public boolean load() {
initparse(); initparse();
// If no file to read, just return false
if (!f.canRead()) { return false; }
FileInputStream fis = null; FileInputStream fis = null;
try { try {
fis = new FileInputStream(f); fis = new FileInputStream(f);