IDEMPIERE-305 Preference throws NPE

This commit is contained in:
Heng Sin Low 2012-06-22 16:45:53 +08:00
parent cdbe8888fd
commit 350bbce59e
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ public final class UserPreference implements Serializable {
String value = VALUES[i];
MPreference preference = query.setParameters(new Object[]{m_AD_User_ID, attribute}).firstOnly();
if (preference != null) {
if (preference != null && preference.getValue() != null) {
value = preference.getValue();
}