Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 337284

Summary: NPE in debug expression hover
Product: [Tools] CDT Reporter: Anton Leherbauer <aleherb+eclipse>
Component: cdt-debug-dsfAssignee: Anton Leherbauer <aleherb+eclipse>
Status: RESOLVED FIXED QA Contact: Pawel Piech <pawel.1.piech>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 7.0.1   
Target Milestone: 8.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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