QmlProfiler: Fix potential null pointer access.

Change-Id: Ic1f52a73c910612d0664e0ea909f04729109bcb2
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
This commit is contained in:
Christian Kandeler
2014-11-18 17:35:51 +01:00
parent 716e327701
commit c91980ce12

View File

@@ -643,7 +643,7 @@ QV8ProfilerEventRelativesView::~QV8ProfilerEventRelativesView()
void QV8ProfilerEventRelativesView::displayType(int index) void QV8ProfilerEventRelativesView::displayType(int index)
{ {
QV8ProfilerDataModel::QV8EventData *event = m_v8Model->v8EventDescription(index); QV8ProfilerDataModel::QV8EventData *event = m_v8Model->v8EventDescription(index);
QTC_CHECK(event); QTC_ASSERT(event, return);
QList<QV8ProfilerDataModel::QV8EventSub*> events; QList<QV8ProfilerDataModel::QV8EventSub*> events;
if (m_type == ParentsView) if (m_type == ParentsView)