From 38d01f7b94be1b132ca5a31828864d30c882365a Mon Sep 17 00:00:00 2001 From: armenrz Date: Mon, 25 Jun 2007 10:15:20 +0000 Subject: [PATCH] Potential bug fix --- base/src/org/compiere/model/MSysConfig.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/base/src/org/compiere/model/MSysConfig.java b/base/src/org/compiere/model/MSysConfig.java index cca46737f4..553c67e498 100644 --- a/base/src/org/compiere/model/MSysConfig.java +++ b/base/src/org/compiere/model/MSysConfig.java @@ -73,12 +73,17 @@ public class MSysConfig extends X_AD_SysConfig { s_log.log(Level.SEVERE, "getValue", e); } + if (str == null) + return null; return (str.trim()); } public static int getIntValue(String Name) { String s = getValue(Name); + if (s == null) + return 0; + if (s.length() == 0) return 0; //