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 254170 - NullPointerException at org.netbeans.modules.java.hints.introduce.IntroduceHint.addExpressionFixes
Summary: NullPointerException at org.netbeans.modules.java.hints.introduce.IntroduceHi...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.1
Hardware: All All
: P2 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
: 254258 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-08-06 10:04 UTC by Tomas Stupka
Modified: 2015-08-26 12:57 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 218994


Attachments
stacktrace (1.41 KB, text/plain)
2015-08-06 10:04 UTC, Tomas Stupka
Details
stacktrace (1.41 KB, text/plain)
2015-08-06 10:48 UTC, Maksim Khramov
Details
stacktrace (1.41 KB, text/plain)
2015-08-07 11:53 UTC, Michel Graciano
Details
stacktrace (1.41 KB, text/plain)
2015-08-07 12:35 UTC, Vladimir Riha
Details
stacktrace (1.41 KB, text/plain)
2015-08-07 12:41 UTC, Michel Graciano
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Stupka 2015-08-06 10:04:04 UTC
Build: NetBeans IDE Dev (Build 20150806-dc0b00cfb387)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b07, Java(TM) SE Runtime Environment, 1.8.0_60-ea-b07
OS: Mac OS X

User Comments:
tstupka: no idea, just edisting




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.java.hints.introduce.IntroduceHint.addExpressionFixes(IntroduceHint.java:371)
   at org.netbeans.modules.java.hints.introduce.IntroduceHint.computeError(IntroduceHint.java:428)
   at org.netbeans.modules.java.hints.introduce.IntroduceHint.run(IntroduceHint.java:242)
   at org.netbeans.modules.java.hints.introduce.IntroduceHint.run(IntroduceHint.java:142)
   at org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:298)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:584)
Comment 1 Tomas Stupka 2015-08-06 10:04:06 UTC
Created attachment 155193 [details]
stacktrace
Comment 2 Maksim Khramov 2015-08-06 10:48:42 UTC
Created attachment 155194 [details]
stacktrace

Editing java code
Comment 3 Michel Graciano 2015-08-07 11:53:05 UTC
Created attachment 155215 [details]
stacktrace

Editing a test file
Comment 4 Vladimir Riha 2015-08-07 12:35:06 UTC
Created attachment 155216 [details]
stacktrace

just somehow clicked in java editor, sorry no idea about specific details
Comment 5 Exceptions Reporter 2015-08-07 12:35:11 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=218994
Comment 6 Michel Graciano 2015-08-07 12:41:06 UTC
Created attachment 155217 [details]
stacktrace

Just editing a file, no big deal
Comment 7 Svata Dedic 2015-08-07 12:54:43 UTC
The error has been there for a long time, but it had surfaced only when "Introduce Method" fix was activated. Because of some recent changes, the unhandled NPE moved to the main hint processing :-/ sorry.

Should be fixed in jet-main#33e5529188d5
Comment 8 Quality Engineering 2015-08-11 01:14:56 UTC
Integrated into 'main-silver', will be available in build *201508110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/33e5529188d5
User: Svata Dedic <sdedic@netbeans.org>
Log: #254170: do not offer introduce method if no viable targets are found
Comment 9 Svata Dedic 2015-08-26 12:57:22 UTC
*** Bug 254258 has been marked as a duplicate of this bug. ***