Bug 110473

Summary: NPE in CDT debug hover help "Text Viewer Hover Presenter"
Product: [Retired] Red Hat Developer Suite Reporter: Jeremy Handcock <handcock>
Component: eclipseAssignee: Jeremy Handcock <handcock>
Status: CLOSED NEXTRELEASE QA Contact: eclipse-bugs
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-01-07 19:48:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.