mirror of
https://github.com/enso-org/enso.git
synced 2024-12-23 06:01:37 +03:00
a74b9e3083
Check if the provided argument is really a string. Shields against: ``` java.lang.ClassCastException: class org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj cannot be cast to class java.lang.String (org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj is in unnamed module of loader org.netbeans.StandardModule$OneModuleClassLoader @2415a13c; java.lang.String is in module java.base of loader 'bootstrap') at org.enso.tools.enso4igv.EnsoRootProject$LogicalView.findPath(EnsoRootProject.java:74) at org.netbeans.modules.project.ui.ProjectsRootNode.findNode(ProjectsRootNode.java:185) at org.netbeans.modules.project.ui.ProjectTab$2.run(ProjectTab.java:552) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1403) at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2018) Caused: org.openide.util.RequestProcessor$SlowItem ``` looks like the `findPath` argument doesn't have to be `String` as previously (and too optimistically) expected by the code. |
||
---|---|---|
.. | ||
main | ||
test/java/org/enso/tools/enso4igv |