From 53cfed71072ff358d5fa8e09ccf2691daaf45262 Mon Sep 17 00:00:00 2001 From: Kushal Munir < kmunir@ca.ibm.com> Date: Wed, 18 Oct 2006 13:32:39 +0000 Subject: [PATCH] If you right click on a shell in the Remote Systems view and select Remove Shell, there is a null pointer exception in the log. This fix gets rid of the null pointer exception. --- .../subsystems/shells/servicesubsystem/OutputRefreshJob.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/internal/subsystems/shells/servicesubsystem/OutputRefreshJob.java b/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/internal/subsystems/shells/servicesubsystem/OutputRefreshJob.java index 48d2f1ce7bb..52b4952aa80 100644 --- a/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/internal/subsystems/shells/servicesubsystem/OutputRefreshJob.java +++ b/rse/plugins/org.eclipse.rse.subsystems.shells.core/src/org/eclipse/rse/internal/subsystems/shells/servicesubsystem/OutputRefreshJob.java @@ -75,7 +75,7 @@ public class OutputRefreshJob extends UIJob try { SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry(); - if (_outputs != null) + if ((_outputs != null) && (_outputs[0] != null)) { registry.fireEvent( new SystemResourceChangeEvent(_outputs, ISystemResourceChangeEvents.EVENT_REFRESH, _command));