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 206739 - NullPointerException at org.netbeans.modules.java.hints.introduce.Flow$State.access$100
Summary: NullPointerException at org.netbeans.modules.java.hints.introduce.Flow$State....
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.1
Hardware: All All
: P2 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
: 202607 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-12-27 13:42 UTC by _ rkubacki
Modified: 2012-11-27 02:57 UTC (History)
10 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 184044


Attachments
stacktrace (1.39 KB, text/plain)
2011-12-27 13:42 UTC, _ rkubacki
Details
stacktrace (1.39 KB, text/plain)
2012-03-02 22:49 UTC, Exceptions Reporter
Details
stacktrace (1.39 KB, text/plain)
2012-03-07 03:17 UTC, Exceptions Reporter
Details
stacktrace (1.39 KB, text/plain)
2012-09-12 20:23 UTC, alied
Details
stacktrace (1.39 KB, text/plain)
2012-11-22 10:55 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ rkubacki 2011-12-27 13:42:06 UTC
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)
Comment 1 _ rkubacki 2011-12-27 13:42:08 UTC
Created attachment 114478 [details]
stacktrace
Comment 2 Exceptions Reporter 2012-02-25 21:08:44 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=184044
Comment 3 Exceptions Reporter 2012-03-02 22:49:09 UTC
Created attachment 116311 [details]
stacktrace

-just doing copy-paste in editor
Comment 4 Exceptions Reporter 2012-03-07 03:17:14 UTC
Created attachment 116412 [details]
stacktrace

Highlighting text and pressed CTRL+C for Java source file
Comment 5 Marian Mirilovic 2012-05-02 16:09:31 UTC
Duplicate of issue 202607 ?
Comment 6 Exceptions Reporter 2012-05-29 15:32:46 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=184044
Comment 7 alied 2012-09-12 20:23:21 UTC
Created attachment 124274 [details]
stacktrace

selected a full switch() statement and pressed auto format (Shift+Ctrl+F)
Comment 8 alied 2012-09-12 20:56:10 UTC
Once I have this error, it keeps popping again and again. I need to close NB to be able to work.
Comment 9 Marian Mirilovic 2012-10-19 12:45:00 UTC
20 dups ... P2
Comment 10 Marian Mirilovic 2012-10-19 12:45:16 UTC
*** Bug 202607 has been marked as a duplicate of this bug. ***
Comment 11 Jan Lahoda 2012-10-31 14:04:57 UTC
A simple reproducible test case would be most welcome - otherwise, I'll have to introduce a null check.
Comment 12 Alexander Simon 2012-11-22 10:55:38 UTC
Created attachment 128253 [details]
stacktrace
Comment 13 Jan Lahoda 2012-11-26 11:21:38 UTC
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.
Comment 14 Quality Engineering 2012-11-27 02:57:29 UTC
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.