From e8f02018cc7ea00892d2c45f0c949115f50e7b36 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 7 Feb 2018 22:53:12 +0100 Subject: [PATCH] IDEMPIERE-3653 1008833 fix NPE hiding configuration errors in hazelcast --- org.adempiere.base/src/org/compiere/util/CLogErrorBuffer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/util/CLogErrorBuffer.java b/org.adempiere.base/src/org/compiere/util/CLogErrorBuffer.java index 8d5a140a05..491c870a27 100644 --- a/org.adempiere.base/src/org/compiere/util/CLogErrorBuffer.java +++ b/org.adempiere.base/src/org/compiere/util/CLogErrorBuffer.java @@ -191,6 +191,7 @@ public class CLogErrorBuffer extends Handler if (methodName == null) methodName = ""; if (DB.isConnected(false) + && methodName != null && !methodName.equals("saveError") && !methodName.equals("get_Value") && !methodName.equals("dataSave") @@ -213,7 +214,8 @@ public class CLogErrorBuffer extends Handler else { //display to user if database connection not available - if (!methodName.equals("saveError") + if (methodName != null + && !methodName.equals("saveError") && !methodName.equals("get_Value") && !methodName.equals("dataSave") && loggerName.indexOf("Issue") == -1