From 1ad79089c0d6e91c21961ac97c25e937cb9ee429 Mon Sep 17 00:00:00 2001 From: Kushal Munir < kmunir@ca.ibm.com> Date: Wed, 18 Oct 2006 15:52:31 +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. --- .../shells/servicesubsystem/OutputRefreshJob.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 52b4952aa80..f7d9e68b4d1 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,10 +75,12 @@ public class OutputRefreshJob extends UIJob try { SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry(); - if ((_outputs != null) && (_outputs[0] != null)) + if (_outputs != null) { - registry.fireEvent( - new SystemResourceChangeEvent(_outputs, ISystemResourceChangeEvents.EVENT_REFRESH, _command)); + if ((_outputs.length > 0) && (_outputs[0] != null)) { + registry.fireEvent( + new SystemResourceChangeEvent(_outputs, ISystemResourceChangeEvents.EVENT_REFRESH, _command)); + } if (_cwdChanged) {