IDEMPIERE-5888 Login Preferences are created on System tenant (#2143)

Fix NPE - oldValue sometime can be null
This commit is contained in:
hengsin 2023-12-15 16:47:25 +08:00 committed by GitHub
parent 8bbdceae0a
commit 58e44e1b5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ public final class UserPreference implements Serializable {
preference.setAttribute(attribute); preference.setAttribute(attribute);
} }
String oldValue = preference.getValue(); String oldValue = preference.getValue();
if (! oldValue.equals(value)) { if (! value.equals(oldValue)) {
try { try {
PO.setCrossTenantSafe(); PO.setCrossTenantSafe();
preference.setValue(value); preference.setValue(value);