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 254231 - NullPointerException at org.netbeans.modules.java.hints.introduce.IntroduceMethodFix.computeIntroduceMethod
Summary: NullPointerException at org.netbeans.modules.java.hints.introduce.IntroduceMe...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-10 08:35 UTC by Ralph Ruijs
Modified: 2015-08-13 01:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 219050


Attachments
stacktrace (1.42 KB, text/plain)
2015-08-10 08:36 UTC, Ralph Ruijs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Ruijs 2015-08-10 08:35:58 UTC
Build: NetBeans IDE Dev (Build 20150810-e57f4c3a3c16)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.51-b03, Java(TM) SE Runtime Environment, 1.8.0_51-b16
OS: Linux

User Comments:
ralphbenjamin: Clicking around




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.java.hints.introduce.IntroduceMethodFix.computeIntroduceMethod(IntroduceMethodFix.java:298)
   at org.netbeans.modules.java.hints.introduce.IntroduceHint.computeError(IntroduceHint.java:431)
   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 Ralph Ruijs 2015-08-10 08:36:00 UTC
Created attachment 155240 [details]
stacktrace
Comment 2 Svata Dedic 2015-08-10 12:38:00 UTC
Will be fixed in  jet-main#8c0f177c8104
Comment 3 Quality Engineering 2015-08-13 01:19:34 UTC
Integrated into 'main-silver', will be available in build *201508130002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8c0f177c8104
User: Svata Dedic <sdedic@netbeans.org>
Log: #254231: avoided NPE in method fix if no suitable for the method is found