IDEMPIERE-5567 - fix stack overflow logging changelog (#1888)

This commit is contained in:
Carlos Ruiz 2023-06-08 05:36:12 +02:00 committed by GitHub
parent 066cd52b8e
commit b0dcdb85d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -370,6 +370,9 @@ public class MSession extends X_AD_Session implements ImmutablePOSupport
int AD_Client_ID, int AD_Org_ID,
Object OldValue, Object NewValue, String event)
{
// never log change log itself (recursive error)
if (AD_Table_ID == MChangeLog.Table_ID)
return null;
// Null handling
if (OldValue == null && NewValue == null)
return null;