IDEMPIERE-3653 1008833 fix NPE hiding configuration errors in hazelcast

This commit is contained in:
Carlos Ruiz 2018-02-07 22:53:12 +01:00
parent 4069878bf9
commit e8f02018cc
1 changed files with 3 additions and 1 deletions

View File

@ -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