From ec7588b1e3209ecfbe2fe787d7b0c2306794b7cf Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 13 Feb 2008 19:21:43 +0000 Subject: [PATCH] [ 1885496 ] Performance NEEDS --- base/src/org/compiere/model/MTableScriptValidator.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/base/src/org/compiere/model/MTableScriptValidator.java b/base/src/org/compiere/model/MTableScriptValidator.java index 25f85cfc54..fa95434893 100644 --- a/base/src/org/compiere/model/MTableScriptValidator.java +++ b/base/src/org/compiere/model/MTableScriptValidator.java @@ -68,8 +68,12 @@ public class MTableScriptValidator extends X_AD_Table_ScriptValidator // Try cache String key = ""+ad_table_id+"_"+event; ArrayList mvrs = s_cacheTableEvent.get(key); - if (mvrs != null) - return mvrs; + if (mvrs != null) { + if (mvrs.size() > 0) + return mvrs; + else + return null; + } // // Fetch now mvrs = new ArrayList();