Merge pull request #942 from CarlosRuiz-globalqss/IDEMPIERE-4988

IDEMPIERE-4988 NPE - Change Role
This commit is contained in:
Carlos Ruiz 2021-10-22 13:31:43 +02:00 committed by GitHub
commit 6a1ef46f44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 5 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();
}
@ -324,7 +325,8 @@ public class DPRecentItems extends DashboardPanel implements EventListener<Event
desktop.get().removeListener(listener);
desktop = new WeakReference<Desktop>(getDesktop());
desktop.get().addListener(listener);
if (desktop != null && desktop.get() != null)
desktop.get().addListener(listener);
}
}

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();
}
@ -238,7 +239,8 @@ public class DPRunningJobs extends DashboardPanel implements EventListener<Event
desktop.get().removeListener(listener);
desktop = new WeakReference<Desktop>(getDesktop());
desktop.get().addListener(listener);
if (desktop != null && desktop.get() != null)
desktop.get().addListener(listener);
}
}
@ -285,4 +287,4 @@ public class DPRunningJobs extends DashboardPanel implements EventListener<Event
MPInstance.postOnChangedEvent(message);
}
}
}
}