Fix NPE when running GenerateModel

Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2977050
This commit is contained in:
teo_sarca 2010-04-26 19:20:10 +00:00
parent aaa75baf0b
commit b7f64013c8
1 changed files with 2 additions and 1 deletions

View File

@ -760,7 +760,8 @@ public final class Ini implements Serializable
context = new InitialContext(); context = new InitialContext();
env = (String) context.lookup("java:comp/env/"+ADEMPIERE_HOME); env = (String) context.lookup("java:comp/env/"+ADEMPIERE_HOME);
} catch (NamingException e) { } catch (NamingException e) {
log.fine( "Not found 'java:comp/env/"+ADEMPIERE_HOME+"' in Initial Context. " +e.getMessage()); // teo_sarca: if you uncomment the line below you will get an NPE when generating models
//log.fine( "Not found 'java:comp/env/"+ADEMPIERE_HOME+"' in Initial Context. " +e.getMessage());
} }
} }