1
0
Fork 0
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:
David McKnight 2007-07-19 18:27:31 +00:00
parent 296d71527a
commit b41d2338ae

View file

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