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 215520 - NullPointerException at org.netbeans.modules.editor.NbToolTip.buildTip
Summary: NullPointerException at org.netbeans.modules.editor.NbToolTip.buildTip
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-13 13:35 UTC by KhArtNJava
Modified: 2012-09-12 02:09 UTC (History)
13 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 190657


Attachments
stacktrace (1.96 KB, text/plain)
2012-07-13 13:35 UTC, KhArtNJava
Details
stacktrace (1.97 KB, text/plain)
2012-07-16 18:29 UTC, Montserrat
Details
stacktrace (1.94 KB, text/plain)
2012-07-18 15:29 UTC, misterm
Details
stacktrace (1.94 KB, text/plain)
2012-07-20 15:05 UTC, misterm
Details
stacktrace (1.96 KB, text/plain)
2012-07-23 07:20 UTC, Vladimir Riha
Details
stacktrace (1.94 KB, text/plain)
2012-07-23 15:11 UTC, misterm
Details
stacktrace (1.96 KB, text/plain)
2012-07-26 13:54 UTC, ehsavoie
Details
stacktrace (1.96 KB, text/plain)
2012-07-31 15:00 UTC, Jesse Glick
Details
stacktrace (1.96 KB, text/plain)
2012-08-01 21:33 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description KhArtNJava 2012-07-13 13:35:38 UTC
Build: NetBeans IDE Dev (Build 201207110002)
VM: Java HotSpot(TM) Client VM, 23.1-b03, Java(TM) SE Runtime Environment, 1.7.0_05-b05
OS: Windows 7

Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.editor.NbToolTip.buildTip(NbToolTip.java:176)
   at org.netbeans.modules.editor.NbToolTip.buildToolTip(NbToolTip.java:120)
   at org.netbeans.modules.editor.NbEditorKit$NbBuildToolTipAction.actionPerformed(NbEditorKit.java:645)
   at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:339)
   at org.netbeans.editor.ext.ToolTipSupport.updateToolTip(ToolTipSupport.java:557)
   at org.netbeans.editor.ext.ToolTipSupport.setToolTipVisible(ToolTipSupport.java:591)
Comment 1 KhArtNJava 2012-07-13 13:35:40 UTC
Created attachment 122008 [details]
stacktrace
Comment 2 Exceptions Reporter 2012-07-15 05:47:09 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=190657
Comment 3 Montserrat 2012-07-16 18:29:08 UTC
Created attachment 122071 [details]
stacktrace
Comment 4 Exceptions Reporter 2012-07-17 09:05:09 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=190657
Comment 5 misterm 2012-07-18 15:29:07 UTC
Created attachment 122169 [details]
stacktrace
Comment 6 misterm 2012-07-20 15:05:09 UTC
Created attachment 122227 [details]
stacktrace
Comment 7 Vladimir Riha 2012-07-23 07:20:09 UTC
Created attachment 122258 [details]
stacktrace

probably during function definition in javascript file
Comment 8 Vladimir Riha 2012-07-23 10:27:58 UTC
Somehow reproducible by pasting a large JSON code (~1k lines) into editor and repeating Undo/Redo
Comment 9 misterm 2012-07-23 15:11:08 UTC
Created attachment 122273 [details]
stacktrace
Comment 10 ehsavoie 2012-07-26 13:54:36 UTC
Created attachment 122405 [details]
stacktrace
Comment 11 Jesse Glick 2012-07-31 15:00:36 UTC
Created attachment 122592 [details]
stacktrace
Comment 12 Svata Dedic 2012-08-01 08:11:41 UTC
Actually triggered by moving to a closing brace when no mouse gesture was made in the editor. This is easily fixable in NbToolTip, but probably deserves an additional API call to show tooltips without trying to build them based on DocumentView + mouse position.
Comment 13 Svata Dedic 2012-08-01 09:30:39 UTC
Changeset: 42fdcbdedd81
Author:    Svata Dedic <sdedic@netbeans.org>
Date:      2012-08-01 11:30
Message:   Issue #215520 - NullPointerException at org.netbeans.modules.editor.NbToolTip.buildTip: fixed
Do not attempt to build tooltip, if the mouse event location is not known to the editor
Comment 14 Svata Dedic 2012-08-01 11:09:29 UTC
Note - API change initiated as issue #216245
Comment 15 Jesse Glick 2012-08-01 21:33:44 UTC
Created attachment 122654 [details]
stacktrace
Comment 16 Quality Engineering 2012-08-02 02:32:19 UTC
Integrated into 'main-golden', will be available in build *201208020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/42fdcbdedd81
User: Svata Dedic <sdedic@netbeans.org>
Log: Issue #215520 - NullPointerException at org.netbeans.modules.editor.NbToolTip.buildTip: fixed
Do not attempt to build tooltip, if the mouse event location is not known to the editor
Comment 17 Quality Engineering 2012-09-12 02:09:28 UTC
Integrated into 'main-golden', will be available in build *201209120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/b1455f29e7e6
User: Svata Dedic <sdedic@netbeans.org>
Log: #215520: enhancement of the NPE fix: using new API to display a tooltip not built from view hieararchy