Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337284 - NPE in debug expression hover
Summary: NPE in debug expression hover
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf (show other bugs)
Version: 7.0.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 8.0   Edit
Assignee: Anton Leherbauer CLA
QA Contact: Pawel Piech CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-16 03:36 EST by Anton Leherbauer CLA
Modified: 2011-02-16 07:21 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Leherbauer CLA 2011-02-16 03:36:22 EST
I saw this in the log recently.

java.lang.NullPointerException
	at org.eclipse.cdt.dsf.debug.ui.AbstractDsfDebugTextHover.evaluateExpression(AbstractDsfDebugTextHover.java:137)
	at org.eclipse.cdt.debug.ui.editors.AbstractDebugTextHover.getHoverInfo(AbstractDebugTextHover.java:147)
	at org.eclipse.cdt.dsf.debug.ui.AbstractDsfDebugTextHover.getHoverInfo2(AbstractDsfDebugTextHover.java:205)
	at org.eclipse.cdt.debug.internal.ui.editors.DelegatingDebugTextHover.getHoverInfo2(DelegatingDebugTextHover.java:64)
	at org.eclipse.cdt.internal.ui.text.c.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:149)
	at org.eclipse.cdt.internal.ui.text.c.hover.CEditorTextHoverProxy.getHoverInfo2(CEditorTextHoverProxy.java:86)
	at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
Comment 1 Anton Leherbauer CLA 2011-02-16 06:40:53 EST
Added a guard. Fixed.
Comment 2 CDT Genie CLA 2011-02-16 07:21:45 EST
*** cdt cvs genie on behalf of aleherbau ***
Bug 337284 - NPE in debug expression hover

[*] AbstractDsfDebugTextHover.java 1.9 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/AbstractDsfDebugTextHover.java?root=Tools_Project&r1=1.8&r2=1.9