diff --git a/src/org/dclermonte/siba/model/SibaUtils.java b/src/org/dclermonte/siba/model/SibaUtils.java index 24b3b71..a7fed24 100644 --- a/src/org/dclermonte/siba/model/SibaUtils.java +++ b/src/org/dclermonte/siba/model/SibaUtils.java @@ -47,7 +47,6 @@ public class SibaUtils public static String loadMD5Sum(final File choosenFile) throws IOException { String result; - result = ""; if (choosenFile.exists() && (choosenFile.length() > 32)) { @@ -57,6 +56,10 @@ public class SibaUtils result = line.substring(0, 32); fileReader.close(); } + else + { + result = ""; + } // return result; @@ -124,7 +127,7 @@ public class SibaUtils { File result; - result = null; + // result = null; if (choosenFile.exists() && (choosenFile.length() > 32)) { FileReader fileReader = new FileReader(choosenFile); @@ -142,8 +145,12 @@ public class SibaUtils String path = System.getProperty("user.dir"); result = new File(path + "/" + fileNameToString); } - } + } + else + { + result = null; + } // return result; }