IDEMPIERE-5136 Set Messages at tenant level / Fix NPE (#1561)

This commit is contained in:
Carlos Ruiz 2022-11-15 14:53:06 +01:00 committed by GitHub
parent 05bf9d6add
commit 74e94cb77f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ public class MMessage extends X_AD_Message implements ImmutablePOSupport
protected boolean beforeSave(boolean newRecord) {
// To avoid conflicts with tenant level messages, the value cannot start with numeric and |
if (getValue().contains("|")) {
if (getValue() != null && getValue().contains("|")) {
String prefix = getValue().substring(0, getValue().indexOf("|"));