forked from qt-creator/qt-creator
QmlProfiler: Fix potential null pointer access.
Change-Id: Ic1f52a73c910612d0664e0ea909f04729109bcb2 Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
This commit is contained in:
@@ -643,7 +643,7 @@ QV8ProfilerEventRelativesView::~QV8ProfilerEventRelativesView()
|
||||
void QV8ProfilerEventRelativesView::displayType(int index)
|
||||
{
|
||||
QV8ProfilerDataModel::QV8EventData *event = m_v8Model->v8EventDescription(index);
|
||||
QTC_CHECK(event);
|
||||
QTC_ASSERT(event, return);
|
||||
|
||||
QList<QV8ProfilerDataModel::QV8EventSub*> events;
|
||||
if (m_type == ParentsView)
|
||||
|
Reference in New Issue
Block a user