1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 23:55:26 +02:00

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.

This commit is contained in:
Kushal Munir 2006-10-18 15:52:31 +00:00
parent efc91cccaa
commit 1ad79089c0

View file

@ -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)
{