This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Reproduced in build 060827 (JDK 1.6 beta 2). To reproduce the bug in column view: - create a new global element of the boolean type; - select 'Inherited formn boolean' node and invoke 'Find Usages'. java.lang.NullPointerException: Passed null to FileOwnerQuery.getOwner(FileObject) at org.netbeans.api.project.FileOwnerQuery.getOwner(FileOwnerQuery.java:65) at org.netbeans.modules.xml.refactoring.impl.RefactoringUtil.findCurrentProject(RefactoringUtil.java:56) at org.netbeans.modules.xml.refactoring.FindUsageResult.doSearch(FindUsageResult.java:127) at org.netbeans.modules.xml.refactoring.FindUsageResult.get(FindUsageResult.java:100) at org.netbeans.modules.xml.refactoring.ui.readers.WhereUsedReader.loadGraph(WhereUsedReader.java:251) at org.netbeans.modules.xml.refactoring.ui.views.WhereUsedView.createGraph(WhereUsedView.java:173) at org.netbeans.modules.xml.refactoring.ui.views.WhereUsedView.createModels(WhereUsedView.java:161) at org.netbeans.modules.xml.refactoring.ui.j.ui.RefactoringPanel$6.run(RefactoringPanel.java:771) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
Refactoring or findUsage does not make semantic sense on inherited nodes, particularly built-in schema datatype. In general, user should go to superdefinition and do refactoring/query there. I discussed this with Chris. The solution for this is remove the refactoring menu from 'Inherited From' child nodes. Reassign to Ajit.
We should not display the refactor action in readonly schema component nodes (inhertied from) We should not enable find usages when fobj can not be found, (for primitive types)
Verified in build 060831.