mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 23:25:26 +02:00
[196930] - null check on adapter and return okay when there is no system type
This commit is contained in:
parent
296d71527a
commit
b41d2338ae
1 changed files with 4 additions and 1 deletions
|
@ -1721,12 +1721,15 @@ public class SystemView extends SafeTreeViewer
|
|||
if (sysType != null) { // sysType can be null if workspace contains a host that is no longer defined by the workbench
|
||||
RSESystemTypeAdapter adapter = (RSESystemTypeAdapter)(sysType.getAdapter(RSESystemTypeAdapter.class));
|
||||
|
||||
if (!adapter.isEnabled(sysType))
|
||||
if (adapter == null || !adapter.isEnabled(sysType))
|
||||
{
|
||||
// don't add this if our src is not enabled
|
||||
return Status.OK_STATUS;
|
||||
}
|
||||
}
|
||||
else {
|
||||
return Status.OK_STATUS;
|
||||
}
|
||||
}
|
||||
|
||||
//System.out.println("ADDING CONNECTIONS.........................: " + addingConnection);
|
||||
|
|
Loading…
Add table
Reference in a new issue