forked from qt-creator/qt-creator
Fixed possible crash in the outline view when processing incomplete documents.
Task-number: QTCREATORBUG-1948
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user