IDEMPIERE-4988 NPE - Change Role

This commit is contained in:
Carlos Ruiz 2021-10-22 13:27:46 +02:00
parent 0192bca743
commit d6d05d5fd1
2 changed files with 4 additions and 2 deletions

View File

@ -325,6 +325,7 @@ public class DPRecentItems extends DashboardPanel implements EventListener<Event
desktop.get().removeListener(listener);
desktop = new WeakReference<Desktop>(getDesktop());
if (desktop != null && desktop.get() != null)
desktop.get().addListener(listener);
}
}

View File

@ -239,6 +239,7 @@ public class DPRunningJobs extends DashboardPanel implements EventListener<Event
desktop.get().removeListener(listener);
desktop = new WeakReference<Desktop>(getDesktop());
if (desktop != null && desktop.get() != null)
desktop.get().addListener(listener);
}
}