Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Cannot Reproduce
-
12.2
-
None
-
None
Description
I am trying to open
https://github.com/daemontus/heap-language/
project in NetBeans 12.2 and this is the result:
There is a lot of Error Node. This is caused by SourcesNodeFactory:
@Override public Node node(SourceGroup group) { Project owner = FileOwnerQuery.getOwner(group.getRootFolder()); if (owner != project) { if (owner == null) { //#152418 if project for folder is not found, just look the other way.. Logger.getLogger(SourcesNodeFactory.class.getName()).log(Level.INFO, "Cannot find a project owner for folder {0}", group.getRootFolder()); //NOI18N return null; } AbstractNode erroNode = new AbstractNode(Children.LEAF); String prjText = ProjectUtils.getInformation(owner).getDisplayName(); //TODO: Could this happen? Use Bundle. erroNode.setDisplayName("Error Node: " + group.getDisplayName() + " " + prjText); return erroNode; }
the group.getRootFolder() belongs to sub project, but the owner is identified as the parent project.