From bf877d0aaeada7aeddf57a726a1f1a86967fb7cb Mon Sep 17 00:00:00 2001 From: Roberto Raggi <roberto.raggi@nokia.com> Date: Mon, 2 Aug 2010 15:57:42 +0200 Subject: [PATCH] Fixed possible crash in the outline view when processing incomplete documents. Task-number: QTCREATORBUG-1948 --- src/plugins/qmljseditor/qmloutlinemodel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/qmljseditor/qmloutlinemodel.cpp b/src/plugins/qmljseditor/qmloutlinemodel.cpp index 9064277687b..92bec0cee7a 100644 --- a/src/plugins/qmljseditor/qmloutlinemodel.cpp +++ b/src/plugins/qmljseditor/qmloutlinemodel.cpp @@ -401,7 +401,8 @@ QModelIndex QmlOutlineModel::enterPublicMember(AST::UiPublicMember *publicMember { QmlOutlineItem prototype(this); - prototype.setText(publicMember->name->asString()); + if (publicMember->name) + prototype.setText(publicMember->name->asString()); prototype.setIcon(m_icons->publicMemberIcon()); prototype.setData(PropertyType, ItemTypeRole); prototype.setSourceLocation(getLocation(publicMember)); -- GitLab