IDEMPIERE-4988 Fix NPE on changeRole

This commit is contained in:
Orlando Curieles 2021-10-15 15:47:09 -04:00 committed by Carlos Ruiz
parent 4759ae5c2b
commit 0192bca743
2 changed files with 5 additions and 3 deletions

View File

@ -310,7 +310,8 @@ public class DPRecentItems extends DashboardPanel implements EventListener<Event
@Override @Override
public void updateUI() { public void updateUI() {
refresh(); refresh();
bxRecentItems.invalidate(); if (bxRecentItems != null)
bxRecentItems.invalidate();
updateDesktopReference(); updateDesktopReference();
} }

View File

@ -224,7 +224,8 @@ public class DPRunningJobs extends DashboardPanel implements EventListener<Event
public void updateUI() public void updateUI()
{ {
refresh(); refresh();
bxJobs.invalidate(); if (bxJobs != null)
bxJobs.invalidate();
updateDesktopReference(); updateDesktopReference();
} }
@ -285,4 +286,4 @@ public class DPRunningJobs extends DashboardPanel implements EventListener<Event
MPInstance.postOnChangedEvent(message); MPInstance.postOnChangedEvent(message);
} }
} }
} }