Avoid initial ERROR when no markers.yml file (first installation)
This commit is contained in:
parent
88782405f1
commit
fc0b8cc425
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue