1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-09 09:15:38 +02:00

[236874] NPE upon selecting an item that is not associated with subsystem

This commit is contained in:
David McKnight 2008-06-13 13:26:20 +00:00
parent 0de66634cd
commit cf86879a96

View file

@ -58,6 +58,7 @@
* David McKnight (IBM) - [233570] ClassCastException when moving filter after "go into" action
* David Dykstal (IBM) - [233530] Backing out previous change for this bug
* David McKnight (IBM) - [223461] [Refresh][api] Refresh expanded folder under filter refreshes Filter
* David McKnight (IBM) - [236874] NPE upon selecting an item that is not associated with subsystem
********************************************************************************/
package org.eclipse.rse.internal.ui.view;
@ -4826,7 +4827,8 @@ public class SystemView extends SafeTreeViewer
if (selectionIsRemoteObject && !selectionFlagsUpdated) {
ISubSystem srcSubSystem = adapter.getSubSystem(element);
if (srcSubSystem.isConnected() || element instanceof ISystemFilterReference || element instanceof ISubSystem)
if (srcSubSystem != null &&
(srcSubSystem.isConnected() || element instanceof ISystemFilterReference || element instanceof ISubSystem))
{
SystemRemoteElementResourceSet set = null;
if (lastSet != null)