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 254258 - NullPointerException when trying to preview expression evaluation in a tooltip
Summary: NullPointerException when trying to preview expression evaluation in a tooltip
Status: RESOLVED DUPLICATE of bug 254170
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-11 07:40 UTC by stwr
Modified: 2015-08-26 12:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (47.06 KB, application/x-octet-stream)
2015-08-11 07:40 UTC, stwr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stwr 2015-08-11 07:40:02 UTC
Created attachment 155259 [details]
IDE log

Product Version: NetBeans IDE Dev (Build 201508100002)
Java: 1.8.0_60-ea; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-ea-b25
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: C:\Users\cendrowiczm\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\cendrowiczm\AppData\Local\NetBeans\Cache\dev

Test Case --> http://services.netbeans.org/synergy/client/app/#/case/1005/suite/1639/v/1

Please experiment with several code blocks (i.e. lines 92, 93, 96), select some code blocks and move mouse over this block in order to see the tooltip.

Actually the tooltip is displayed and contains correct value. However the NPE is being thrown (please see the IDE log for the stack trace).
Comment 1 Jiri Kovalsky 2015-08-11 12:16:24 UTC
Product Version: NetBeans IDE Dev (Build 201508100002)
Java: 1.8.0_51; Java HotSpot(TM) 64-Bit Server VM 25.51-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16
System: Linux version 3.13.0-37-generic running on amd64; UTF-8; cs_CZ (nb)
User directory: /home/cesilko/.netbeans/dev
Cache directory: /home/cesilko/.cache/netbeans/dev

Reproducible.

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)
[catch] at org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:298)
	at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:584)
	at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:809)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:304)
	at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:725)
	at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:686)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
Comment 2 Svata Dedic 2015-08-26 12:57:22 UTC
Should be the same cause as #254170

*** This bug has been marked as a duplicate of bug 254170 ***