IDEMPIERE-4946 : Add IsShowInDashboard, SeqNo and ImageURL on AD_UserDef_Info - fix NPE (#905)

This commit is contained in:
Nicolas Micoud 2021-10-06 17:57:36 +02:00 committed by GitHub
parent 9c220f0be3
commit 222837abb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ public class DPViews extends DashboardPanel implements EventListener<Event> {
if (userDef != null) { if (userDef != null) {
if ((info.isShowInDashboard() && Util.isEmpty(userDef.getIsShowInDashboard())) || userDef.getIsShowInDashboard().equals(MUserDefInfo.ISSHOWINDASHBOARD_Yes)) { if ((info.isShowInDashboard() && Util.isEmpty(userDef.getIsShowInDashboard())) || (!Util.isEmpty(userDef.getIsShowInDashboard()) && userDef.getIsShowInDashboard().equals(MUserDefInfo.ISSHOWINDASHBOARD_Yes))) {
int seqNo = userDef.getSeqNo() > 0 ? userDef.getSeqNo() : info.getSeqNo(); int seqNo = userDef.getSeqNo() > 0 ? userDef.getSeqNo() : info.getSeqNo();
selectedInfoWindows.add(new ListInfoWindow(info, seqNo)); selectedInfoWindows.add(new ListInfoWindow(info, seqNo));
} }