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 268374

Summary: NullPointerException at org.netbeans.modules.java.hints.errors.AddParameterOrLocalFix$1.run
Product: java Reporter: Exceptions Reporter <exceptions_reporter>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 226618
Attachments: stacktrace

Description Exceptions Reporter 2016-10-06 09:40:41 UTC
This bug was originally marked as duplicate of bug 212047, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.2 (Build 201609300101)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.73-b02, Java(TM) SE Runtime Environment, 1.8.0_73-b02
OS: Windows 7

User Comments:
GUEST: Alt-Enter on code line with red underline




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.java.hints.errors.AddParameterOrLocalFix$1.run(AddParameterOrLocalFix.java:154)
   at org.netbeans.modules.java.hints.errors.AddParameterOrLocalFix$1.run(AddParameterOrLocalFix.java:138)
   at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:636)
   at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:626)
   at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:486)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:609)
Comment 1 Exceptions Reporter 2016-10-06 09:40:42 UTC
Created attachment 162364 [details]
stacktrace
Comment 2 Svata Dedic 2016-11-11 12:06:45 UTC
Fixed in jet-main#423d0b541c9f
Comment 3 Quality Engineering 2016-11-13 02:53:11 UTC
Integrated into 'main-silver', will be available in build *201611130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/423d0b541c9f
User: Svata Dedic <sdedic@netbeans.org>
Log: #268374: avoid NPE for invalid TreePaths