IDEMPIERE-4988 NPE - Change Role
This commit is contained in:
parent
0192bca743
commit
d6d05d5fd1
|
@ -325,7 +325,8 @@ public class DPRecentItems extends DashboardPanel implements EventListener<Event
|
||||||
desktop.get().removeListener(listener);
|
desktop.get().removeListener(listener);
|
||||||
|
|
||||||
desktop = new WeakReference<Desktop>(getDesktop());
|
desktop = new WeakReference<Desktop>(getDesktop());
|
||||||
desktop.get().addListener(listener);
|
if (desktop != null && desktop.get() != null)
|
||||||
|
desktop.get().addListener(listener);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -239,7 +239,8 @@ public class DPRunningJobs extends DashboardPanel implements EventListener<Event
|
||||||
desktop.get().removeListener(listener);
|
desktop.get().removeListener(listener);
|
||||||
|
|
||||||
desktop = new WeakReference<Desktop>(getDesktop());
|
desktop = new WeakReference<Desktop>(getDesktop());
|
||||||
desktop.get().addListener(listener);
|
if (desktop != null && desktop.get() != null)
|
||||||
|
desktop.get().addListener(listener);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue