Commits

Anonymous committed bd4b5ca Draft

Fixed import settings Cancel request bug.

Comments (0)

Files changed (1)

src/nyagua/data/Setting.java

 
     @SuppressWarnings("static-access")
     public void importSettings() throws IOException, InvalidPreferencesFormatException{
-        File prefsFile = null;
-        prefsFile = XMLFilter.getXMLFile();
+        File prefsFile = prefsFile = XMLFilter.getXMLFile();
+        if (prefsFile==null) return;
          //is = null;
         try {
             InputStream is = new BufferedInputStream(new FileInputStream(prefsFile.getAbsolutePath()));