Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-1006

Usage search crashes with NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 9.0
    • None
    • editor - Search
    • None

    Description

      When doing a usage search through a compilation of many inter-wired Maven projects this often terminates with a NullPointerException:

      java.lang.NullPointerException
       at org.netbeans.api.java.source.ElementHandle.resolve(ElementHandle.java:118)
       at org.netbeans.api.java.source.TreePathHandle$TreeDelegate.resolveElement(TreePathHandle.java:530)
       at org.netbeans.api.java.source.TreePathHandle.resolveElement(TreePathHandle.java:162)
       at org.netbeans.modules.refactoring.java.plugins.JavaWhereUsedQueryPlugin$FindTask.run(JavaWhereUsedQueryPlugin.java:574)
       at org.netbeans.modules.refactoring.java.plugins.JavaWhereUsedQueryPlugin$FindTask.run(JavaWhereUsedQueryPlugin.java:548)
       at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:501)
       at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586)
       at org.netbeans.modules.parsing.api.ParserManager$MultiUserTaskAction.run(ParserManager.java:166)
       at org.netbeans.modules.parsing.api.ParserManager$MultiUserTaskAction.run(ParserManager.java:138)
       at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181)
       at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178)
       at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153)
       at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335)
       at org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118)
       at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67)
       at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:178)
       at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:83)
       at org.netbeans.api.java.source.JavaSource.runUserActionTaskImpl(JavaSource.java:451)
       at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:422)
       at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin.processFiles(JavaRefactoringPlugin.java:319)
       at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin.processFiles(JavaRefactoringPlugin.java:263)
       at org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin.queryFiles(JavaRefactoringPlugin.java:253)
       at org.netbeans.modules.refactoring.java.plugins.JavaWhereUsedQueryPlugin.prepare(JavaWhereUsedQueryPlugin.java:362)
      [catch] at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare2(AbstractRefactoring.java:417)
       at org.netbeans.modules.refactoring.api.AbstractRefactoring.pluginsPrepare(AbstractRefactoring.java:401)
       at org.netbeans.modules.refactoring.api.AbstractRefactoring.prepare(AbstractRefactoring.java:212)
       at org.netbeans.modules.refactoring.spi.impl.ParametersPanel$Prepare$2.run(ParametersPanel.java:1059)
       at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
       at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
       at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
       at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
      

      Please note that I am not allowed to give more details about the project or the full report as that might include such information.

      Attachments

        Activity

          People

            Unassigned Unassigned
            TwoThe Stefan Feldbinder
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: