IDEMPIERE-4988 NPE - Change Role
This commit is contained in:
parent
0192bca743
commit
d6d05d5fd1
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue