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:
parent
0de66634cd
commit
cf86879a96
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue