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 269344 - NullPointerException at org.netbeans.modules.jshell.editor.CommandCompletionProvider$CommandDocumentationTask.query
Summary: NullPointerException at org.netbeans.modules.jshell.editor.CommandCompletionP...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: JShell (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-14 22:22 UTC by muellermi
Modified: 2017-03-10 02:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 227563


Attachments
stacktrace (1.76 KB, text/plain)
2016-12-14 22:22 UTC, muellermi
Details
stacktrace (1.76 KB, text/plain)
2016-12-14 22:24 UTC, muellermi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description muellermi 2016-12-14 22:22:02 UTC
Build: NetBeans IDE Dev (Build 201612070001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.111-b14, Java(TM) SE Runtime Environment, 1.8.0_111-b14
OS: Linux

User Comments:
muellermi: as before

muellermi: moving up down in the autocompletion list of java shell




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.jshell.editor.CommandCompletionProvider$CommandDocumentationTask.query(CommandCompletionProvider.java:384)
   at org.netbeans.modules.editor.completion.CompletionImpl.queryResultSets(CompletionImpl.java:1860)
   at org.netbeans.modules.editor.completion.CompletionImpl.documentationQuery(CompletionImpl.java:1380)
   at org.netbeans.modules.editor.completion.CompletionImpl.showDocumentation(CompletionImpl.java:1317)
   at org.netbeans.modules.editor.completion.CompletionImpl$5.actionPerformed(CompletionImpl.java:285)
   at javax.swing.Timer.fireActionPerformed(Timer.java:313)
Comment 1 muellermi 2016-12-14 22:22:04 UTC
Created attachment 163240 [details]
stacktrace
Comment 2 muellermi 2016-12-14 22:24:47 UTC
Created attachment 163241 [details]
stacktrace

as before
Comment 3 Svata Dedic 2017-01-09 16:25:50 UTC
Should be fixed by jet-main#56fe845bcdba
Comment 4 Jiri Prox 2017-02-20 14:54:14 UTC
Unfortunately I've got this from 


Product Version: NetBeans IDE Dev (Build 201702200002)
Java: 1.8.0_121; Java HotSpot(TM) 64-Bit Server VM 25.121-b13
Runtime: Java(TM) SE Runtime Environment 1.8.0_121-b13
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev
Comment 5 Svata Dedic 2017-02-28 14:35:41 UTC
OK, fixed case where the tool does not provide adequate documentation; /prompt did that, since it was removed from the implemented commands but not from the lexer :)

Fixed in jet-main#d64584a7fe30
Comment 6 Quality Engineering 2017-03-02 03:51:49 UTC
Integrated into 'main-silver', will be available in build *201703020002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d64584a7fe30
User: Svata Dedic <sdedic@netbeans.org>
Log: #269344: fixed javadoc popup for commands w/o documentation. Updated lexer's command list
Comment 7 Quality Engineering 2017-03-10 02:55:15 UTC
Integrated into 'main-silver', will be available in build *201703100002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/56fe845bcdba
User: Svata Dedic <sdedic@netbeans.org>
Log: #269344: avoid NPE on uninitialized shell