IDEMPIERE-5136 Set Messages at tenant level / Fix NPE (#1561)
This commit is contained in:
parent
05bf9d6add
commit
74e94cb77f
|
@ -215,7 +215,7 @@ public class MMessage extends X_AD_Message implements ImmutablePOSupport
|
||||||
protected boolean beforeSave(boolean newRecord) {
|
protected boolean beforeSave(boolean newRecord) {
|
||||||
|
|
||||||
// To avoid conflicts with tenant level messages, the value cannot start with numeric and |
|
// 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("|"));
|
String prefix = getValue().substring(0, getValue().indexOf("|"));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue