diff --git a/tools/enso4igv/src/main/java/org/enso/tools/enso4igv/EnsoRootProject.java b/tools/enso4igv/src/main/java/org/enso/tools/enso4igv/EnsoRootProject.java index a86ad22365..0706eebe6a 100644 --- a/tools/enso4igv/src/main/java/org/enso/tools/enso4igv/EnsoRootProject.java +++ b/tools/enso4igv/src/main/java/org/enso/tools/enso4igv/EnsoRootProject.java @@ -71,7 +71,11 @@ final class EnsoRootProject implements Project { @Override public Node findPath(Node node, Object o) { - return org.openide.nodes.NodeOp.findChild(node, (String) o); + if (o instanceof String path) { + return org.openide.nodes.NodeOp.findChild(node, path); + } else { + return null; + } } }