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,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

@ -239,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);
}
}