1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-20 06:35:50 +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 13:32:39 +00:00
parent fadb48867c
commit 53cfed7107

View file

@ -75,7 +75,7 @@ public class OutputRefreshJob extends UIJob
try try
{ {
SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry(); SystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();
if (_outputs != null) if ((_outputs != null) && (_outputs[0] != null))
{ {
registry.fireEvent( registry.fireEvent(
new SystemResourceChangeEvent(_outputs, ISystemResourceChangeEvents.EVENT_REFRESH, _command)); new SystemResourceChangeEvent(_outputs, ISystemResourceChangeEvents.EVENT_REFRESH, _command));