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.
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)
Created attachment 122008 [details] stacktrace
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=190657
Created attachment 122071 [details] stacktrace
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=190657
Created attachment 122169 [details] stacktrace
Created attachment 122227 [details] stacktrace
Created attachment 122258 [details] stacktrace probably during function definition in javascript file
Somehow reproducible by pasting a large JSON code (~1k lines) into editor and repeating Undo/Redo
Created attachment 122273 [details] stacktrace
Created attachment 122405 [details] stacktrace
Created attachment 122592 [details] stacktrace
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.
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
Note - API change initiated as issue #216245
Created attachment 122654 [details] stacktrace
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
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