Evita o stacktrace
authorHumberto Silva Naves <[email protected]>
Thu, 20 Nov 2008 22:30:53 +0000 (20 20:30 -0200)
committerHumberto Silva Naves <[email protected]>
Thu, 20 Nov 2008 22:30:53 +0000 (20 20:30 -0200)
src/main/java/org/hnaves/dfs/Configurator.java

index b533327..41b6831 100644 (file)
@@ -1,6 +1,7 @@
 package org.hnaves.dfs;
 
 import java.io.FileInputStream;
+import java.io.FileNotFoundException;
 import java.io.FileOutputStream;
 import java.util.Properties;
 import java.util.logging.Level;
@@ -114,6 +115,8 @@ public class Configurator {
                        props = new Properties();
                        try {
                                props.load(new FileInputStream(".config.ini"));
+                       } catch(FileNotFoundException ex) {
+                               props = new Properties();
                        } catch (Exception e) {
                                props = new Properties();
                                LOG.log(Level.SEVERE, "Error while loading configuration", e);