mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 17:35:35 +02:00
[349491] possible NPE on shutdown due to event firing
This commit is contained in:
parent
e37806d927
commit
afe5b1dea9
1 changed files with 5 additions and 2 deletions
|
@ -24,6 +24,7 @@
|
|||
* David McKnight (IBM) - [272882] [api] Handle exceptions in IService.initService()
|
||||
* David McKnight (IBM) [302724] problems with environment variable substitution
|
||||
* David McKnight (IBM) - [338031] Remote Shell view tabs should have close (x) icon
|
||||
* David McKnight (IBM) - [349491] possible NPE on shutdown due to event firing
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.rse.subsystems.shells.core.subsystems;
|
||||
|
@ -709,8 +710,10 @@ public abstract class RemoteCmdSubSystem extends SubSystem implements IRemoteCmd
|
|||
|
||||
public void run()
|
||||
{
|
||||
ISystemRegistry registry = RSECorePlugin.getTheSystemRegistry();
|
||||
registry.fireEvent(new SystemResourceChangeEvent(_ss, ISystemResourceChangeEvents.EVENT_REFRESH, _ss));
|
||||
if (RSECorePlugin.isTheSystemRegistryActive()){
|
||||
ISystemRegistry registry = RSECorePlugin.getTheSystemRegistry();
|
||||
registry.fireEvent(new SystemResourceChangeEvent(_ss, ISystemResourceChangeEvents.EVENT_REFRESH, _ss));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue