IDEMPIERE-305 Preference throws NPE
This commit is contained in:
parent
cdbe8888fd
commit
350bbce59e
|
@ -148,7 +148,7 @@ public final class UserPreference implements Serializable {
|
||||||
String value = VALUES[i];
|
String value = VALUES[i];
|
||||||
|
|
||||||
MPreference preference = query.setParameters(new Object[]{m_AD_User_ID, attribute}).firstOnly();
|
MPreference preference = query.setParameters(new Object[]{m_AD_User_ID, attribute}).firstOnly();
|
||||||
if (preference != null) {
|
if (preference != null && preference.getValue() != null) {
|
||||||
value = preference.getValue();
|
value = preference.getValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue