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 271408 - NullPointerException: The treePath parameter cannot be null
Summary: NullPointerException: The treePath parameter cannot be null
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-30 17:22 UTC by alied
Modified: 2017-09-03 02:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 230178


Attachments
stacktrace (10.38 KB, text/plain)
2017-08-30 17:22 UTC, alied
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alied 2017-08-30 17:22:21 UTC
Build: NetBeans IDE Dev (Build 201708300001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.141-b15, Java(TM) SE Runtime Environment, 1.8.0_141-b15
OS: Linux

User Comments:
alied: While typing the name of a new variable extracted via Shift+Alt + v




Stacktrace: 
java.lang.NullPointerException: The treePath parameter cannot be null
   at org.openide.util.Parameters.notNull(Parameters.java:89)
   at org.netbeans.api.java.source.TreePathHandle.create(TreePathHandle.java:225)
   at org.netbeans.modules.java.hints.introduce.FieldValidator$SearchImpl.run(FieldValidator.java:168)
   at org.netbeans.modules.java.hints.introduce.FieldValidator$SearchImpl.run(FieldValidator.java:100)
   at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:523)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:609)
Comment 1 alied 2017-08-30 17:22:23 UTC
Created attachment 165056 [details]
stacktrace
Comment 2 Svata Dedic 2017-09-01 15:19:17 UTC
Fixed in jet-main#85fcad650f32
Comment 3 Quality Engineering 2017-09-03 02:50:40 UTC
Integrated into 'main-silver', will be available in build *201709030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/85fcad650f32
User: Svata Dedic <sdedic@netbeans.org>
Log: #271408: workaround - getPath() does not find paths for locals, resource/exception vars