IDEMPIERE-5888 Login Preferences are created on System tenant (#2143)
Fix NPE - oldValue sometime can be null
This commit is contained in:
parent
8bbdceae0a
commit
58e44e1b5c
|
@ -125,7 +125,7 @@ public final class UserPreference implements Serializable {
|
|||
preference.setAttribute(attribute);
|
||||
}
|
||||
String oldValue = preference.getValue();
|
||||
if (! oldValue.equals(value)) {
|
||||
if (! value.equals(oldValue)) {
|
||||
try {
|
||||
PO.setCrossTenantSafe();
|
||||
preference.setValue(value);
|
||||
|
|
Loading…
Reference in New Issue