Merge pull request #942 from CarlosRuiz-globalqss/IDEMPIERE-4988
IDEMPIERE-4988 NPE - Change Role
This commit is contained in:
commit
6a1ef46f44
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue