Bug 110473 - NPE in CDT debug hover help "Text Viewer Hover Presenter"
Summary: NPE in CDT debug hover help "Text Viewer Hover Presenter"
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Developer Suite
Classification: Retired
Component: eclipse
Version: 1.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeremy Handcock
QA Contact: eclipse-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-11-19 20:19 UTC by Jeremy Handcock
Modified: 2007-04-18 16:59 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-01-07 19:48:47 UTC
Embargoed:


Attachments (Terms of Use)

Description Jeremy Handcock 2003-11-19 20:19:04 UTC
Description of problem:
This NPE showed up a few times when testing CDT debug.  This has to do
with the hover help stuff that pops up when you move your mouse over a
variable in the source file while debugging, and it displays the
current value of the variable.

Version-Release number of selected component (if applicable):
snapshot-20031119-eclipse-2.1.1-3


How reproducible: Sometimes


Steps to Reproduce:
1. Debug a program using CDT debug
2. Try using the debug hover help capability
3.
  
Actual results: I get this printed out on the console where I started
eclipse, with nothing in the .log file:

[snip]
Exception in thread "Text Viewer Hover Presenter"
java.lang.NullPointerException
   at
org.eclipse.cdt.debug.internal.ui.editors.DebugTextHover.getHoverInfo(org.eclipse.jface.text.ITextViewer,
org.eclipse.jface.text.IRegion)
(/usr/lib/eclipse/plugins/org.eclipse.cdt.debug.ui_1.2.0/libcdtdebugui.so)
      at
org.eclipse.cdt.internal.ui.editor.CEditorTextHoverDispatcher.getHoverInfo(org.eclipse.jface.text.ITextViewer,
org.eclipse.jface.text.IRegion)
(/usr/lib/eclipse/plugins/org.eclipse.cdt.ui_1.2.0/libcdtui.so)
         at org.eclipse.jface.text.TextViewerHoverManager$2.run()
(/usr/lib/eclipse/plugins/org.eclipse.jface.text_2.1.0/libjfacetext.so)
            at _Jv_ThreadRun(java.lang.Thread) (/lib/ssa/libgcj.so.4.0.0)
               at GC_start_routine (/lib/ssa/libgcj.so.4.0.0)
                  at __clone (/lib/tls/libc-2.3.2.so)
[/snip]

... will investigate further and move the PR upstream.

Comment 1 Tom Tromey 2003-11-21 17:10:29 UTC
Jeremy, I'm assigning these to you for triage, since you said
on the list you'd be looking at them.


Comment 2 Jeremy Handcock 2003-12-17 16:41:06 UTC
I've been able to reproduce this both when running with libgcj and
with the IBM JVM.  Whenever I fire up a debug session and mouse-over
something I expect a hover-help box from, I am getting this exception.
 I'm looking at it now.

Comment 3 Jeremy Handcock 2004-01-07 19:48:47 UTC
I found a fix for this in the upstream 1.2.1 branch (from Mikhail
Khodjaiants at QNX), so I checked in the patch here too.  Closing.

Comment 4 John Healy 2004-03-08 21:21:42 UTC
Moving from RHEL/3/Eclipse to Red Hat Developer Suite product.


Note You need to log in before you can comment on or make changes to this bug.