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.

Bug 239211 - NullPointerException at org.netbeans.api.java.source.TreeUtilities.findNameSpan
Summary: NullPointerException at org.netbeans.api.java.source.TreeUtilities.findNameSpan
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.0
Hardware: All All
: P4 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks: 215138
  Show dependency tree
 
Reported: 2013-12-06 19:57 UTC by MackSix
Modified: 2016-07-07 07:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 205845


Attachments
stacktrace (6.09 KB, text/plain)
2013-12-06 19:57 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2013-12-06 19:57:53 UTC
Build: NetBeans IDE Dev (Build 201312050002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b60, Java(TM) SE Runtime Environment, 1.8.0-ea-b118
OS: Windows 7

User Comments:
MackSix: 1. Press Ct+F
2. Clicking in a Java source file at a radom location
3. Press Ctrl+R
4. Repeat 1-3 a few times and this exception happened.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.api.java.source.TreeUtilities.findNameSpan(TreeUtilities.java:879)
   at org.netbeans.modules.refactoring.java.ui.InstantRefactoringUIImpl.computeLabelChangePoints(InstantRefactoringUIImpl.java:432)
   at org.netbeans.modules.refactoring.java.ui.InstantRefactoringUIImpl.access$100(InstantRefactoringUIImpl.java:115)
   at org.netbeans.modules.refactoring.java.ui.InstantRefactoringUIImpl$1.process(InstantRefactoringUIImpl.java:288)
   at org.netbeans.modules.refactoring.java.ui.InstantRefactoringUIImpl$1.process(InstantRefactoringUIImpl.java:191)
   at org.netbeans.modules.refactoring.java.ui.ComputeOffAWT$Compute.run(ComputeOffAWT.java:101)
Comment 1 MackSix 2013-12-06 19:57:55 UTC
Created attachment 142921 [details]
stacktrace
Comment 2 MackSix 2013-12-06 19:59:15 UTC
1. Press Ctrl+F
2. Clicking in a Java source file at a random location
3. Press Ctrl+R
4. Repeat 1-3 a few times and this exception happened.

So far, not reproducible.
Comment 3 MackSix 2013-12-10 10:29:49 UTC
1. In the editor, highlight the keyword "break" in a java source file
2. Press Ctrl+F and notice the word appears in Find Toolbar field.
3. Press Ctrl+R and this Exception happens.

Repeatable
Comment 4 MackSix 2013-12-10 10:40:47 UTC
Actually, you can just highlight the keyword "break" and press Ctrl+R and this exception is thrown.

Repeatable.
Comment 5 Ralph Ruijs 2014-01-07 23:16:06 UTC
The instant rename popup has been disabled in 8.0 (bug 215138, comment 7)
Comment 6 Martin Balin 2016-07-07 07:17:57 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss