Bug 577931 - [Analysis] NPE in FlameChartView tooltip handler
Summary: [Analysis] NPE in FlameChartView tooltip handler
Status: NEW
Alias: None
Product: Tracecompass
Classification: Tools
Component: Analysis (show other bugs)
Version: 7.2.0   Edit
Hardware: PC Linux
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Project Inbox CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-21 15:07 EST by Patrick Tasse CLA
Modified: 2021-12-21 15:07 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Tasse CLA 2021-12-21 15:07:40 EST
The state type name returned by the FlameChartView's resolver can be null when hovering over a trace entry (stack level = -2). This causes a NullPointerException in TmfAbstractToolTipHandler.

TimeGraphPresentationProvider treats the value as being non-null but BaseDataProviderTimeGraphPresentationProvider overrides it as @Nullable.

java.lang.NullPointerException
	at org.eclipse.tracecompass.tmf.ui.viewers.TmfAbstractToolTipHandler$ToolTipString.toHtmlString(TmfAbstractToolTipHandler.java:166)
	at org.eclipse.tracecompass.tmf.ui.viewers.TmfAbstractToolTipHandler$ToolTipString.fromString(TmfAbstractToolTipHandler.java:117)
	at org.eclipse.tracecompass.tmf.ui.viewers.TmfAbstractToolTipHandler.addItem(TmfAbstractToolTipHandler.java:453)
	at org.eclipse.tracecompass.tmf.ui.widgets.timegraph.widgets.TimeGraphTooltipHandler.fillValues(TimeGraphTooltipHandler.java:233)
	at org.eclipse.tracecompass.tmf.ui.widgets.timegraph.widgets.TimeGraphTooltipHandler.fill(TimeGraphTooltipHandler.java:110)
	at org.eclipse.tracecompass.tmf.ui.viewers.TmfAbstractToolTipHandler.createTooltipShell(TmfAbstractToolTipHandler.java:372)
	at org.eclipse.tracecompass.tmf.ui.viewers.TmfAbstractToolTipHandler.access$7(TmfAbstractToolTipHandler.java:352)
	at org.eclipse.tracecompass.tmf.ui.viewers.TmfAbstractToolTipHandler$1.mouseHover(TmfAbstractToolTipHandler.java:307)