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.
Build: NetBeans IDE 7.1 RC2 (Build 201111302200) VM: Java HotSpot(TM) 64-Bit Server VM, 20.1-b02, Java(TM) SE Runtime Environment, 1.6.0_26-b03 OS: Linux User Comments: rkubacki: editing source file (copy action) Stacktrace: java.lang.NullPointerException at org.netbeans.modules.java.hints.introduce.Flow$State.access$100(Flow.java:979) at org.netbeans.modules.java.hints.introduce.Flow.definitellyAssigned(Flow.java:197) at org.netbeans.modules.java.hints.introduce.Flow.definitellyAssigned(Flow.java:184) at org.netbeans.modules.java.hints.introduce.IntroduceHint.computeIntroduceMethod(IntroduceHint.java:640) at org.netbeans.modules.java.hints.introduce.IntroduceHint.computeError(IntroduceHint.java:540) at org.netbeans.modules.java.hints.introduce.IntroduceHint.run(IntroduceHint.java:359)
Created attachment 114478 [details] stacktrace
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=184044
Created attachment 116311 [details] stacktrace -just doing copy-paste in editor
Created attachment 116412 [details] stacktrace Highlighting text and pressed CTRL+C for Java source file
Duplicate of issue 202607 ?
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=184044
Created attachment 124274 [details] stacktrace selected a full switch() statement and pressed auto format (Shift+Ctrl+F)
Once I have this error, it keeps popping again and again. I need to close NB to be able to work.
20 dups ... P2
*** Bug 202607 has been marked as a duplicate of this bug. ***
A simple reproducible test case would be most welcome - otherwise, I'll have to introduce a null check.
Created attachment 128253 [details] stacktrace
Fixed: http://hg.netbeans.org/jet-main/rev/d3900ec0db01 Special thanks go to Sam, based on whose usecase I was able to find the root cause.
Integrated into 'main-golden', will be available in build *201211270002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/d3900ec0db01 User: Jan Lahoda <jlahoda@netbeans.org> Log: #206739: when computing definitely assigned variables, must manually resume parent trees.