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
public void updateUI() {
refresh();
bxRecentItems.invalidate();
if (bxRecentItems != null)
bxRecentItems.invalidate();
updateDesktopReference();
}

View File

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