]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/GraphExplorerImpl.java
Fix selectPath returning true for nodes that haven't been loaded.
[simantics/platform.git] / bundles / org.simantics.browsing.ui.swt / src / org / simantics / browsing / ui / swt / GraphExplorerImpl.java
index 3cf5f7478cd7af3dc23ff412db75eac0628f87c1..817a8d961022934a251be2ad1086821a024b7b03 100644 (file)
@@ -3118,7 +3118,10 @@ class GraphExplorerImpl extends GraphExplorerImplBase implements Listener, Graph
        //System.out.println("NodeContext path : " + contexts);
 
        NodeContext head = tryFind(contexts[position]);
-
+       // tryFind may return null for positions, that actually have NodeContext. 
+       if (head == null)
+           return false;
+       
        if(position == contexts.length-1) {
                return select(head);