From 41aae07021df919e5d2c16c090edc83d6848e3f7 Mon Sep 17 00:00:00 2001 From: Loki Date: Sun, 27 May 2012 08:28:03 +0300 Subject: [PATCH] one more fix --- .../src/main/java/com/magefree/update/helpers/FileHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage.Updater/src/main/java/com/magefree/update/helpers/FileHelper.java b/Mage.Updater/src/main/java/com/magefree/update/helpers/FileHelper.java index 8914854df2..91c2049495 100644 --- a/Mage.Updater/src/main/java/com/magefree/update/helpers/FileHelper.java +++ b/Mage.Updater/src/main/java/com/magefree/update/helpers/FileHelper.java @@ -97,7 +97,7 @@ public class FileHelper { try { InputStream in = urlConnection.getInputStream(); File f = new File(filename); - if (!f.exists()) { + if (!f.exists() && f.getParentFile() != null) { f.getParentFile().mkdirs(); System.out.println("Directories have been created: " + f.getParentFile().getPath()); }