From 7735bf804fcb4aec9f473d4421930c78b0fd2190 Mon Sep 17 00:00:00 2001 From: usrdno Date: Fri, 25 Mar 2011 23:44:17 -0500 Subject: [PATCH] NPE in some cases when saving Adempiere.properties. Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=3051473 --- org.adempiere.base/src/org/compiere/util/Ini.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/util/Ini.java b/org.adempiere.base/src/org/compiere/util/Ini.java index 83a40475fa..ed088d3a82 100644 --- a/org.adempiere.base/src/org/compiere/util/Ini.java +++ b/org.adempiere.base/src/org/compiere/util/Ini.java @@ -256,7 +256,7 @@ public final class Ini implements Serializable try { File f = new File(fileName); - f.getParentFile().mkdirs(); // Create all dirs if not exist - teo_sarca FR [ 2406123 ] + f.getAbsoluteFile().getParentFile().mkdirs(); // Create all dirs if not exist - teo_sarca FR [ 2406123 ] fos = new FileOutputStream(f); s_prop.store(fos, "Adempiere"); fos.flush();