1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-20 14:45:57 +02:00

[187739] need to check for null remote name when expanding

This commit is contained in:
David McKnight 2008-09-03 18:21:00 +00:00
parent 7658fb8a5b
commit daf798e433

View file

@ -294,7 +294,7 @@ public class SystemView extends SafeTreeViewer
if (parentName.equals(itemToExpand.remoteName)){ if (parentName.equals(itemToExpand.remoteName)){
// same item // same item
} }
else if (itemToExpand.remoteName.startsWith(parentName)){ else if (itemToExpand.remoteName != null && itemToExpand.remoteName.startsWith(parentName)){
// child item // child item
subChildren.add(itemToExpand); subChildren.add(itemToExpand);
} }