forked from qt-creator/qt-creator
Axivion: fix crash when creating issue table column links
Some column data used for links may be optional and thus requires a null check before contructing the link to prevent QtCreator from crashing. Change-Id: I53f78d1335f5688cc4655838453fddaa61f9ffab Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Mohammad Mehdi Salem Naraghi
parent
e47dd1d765
commit
22ab5f8be7
@@ -494,7 +494,7 @@ static QList<LinkWithColumns> linksForIssue(const std::map<QString, Dto::Any> &i
|
|||||||
const QString &line) {
|
const QString &line) {
|
||||||
QList<int> columns;
|
QList<int> columns;
|
||||||
auto it = issueRow.find(path);
|
auto it = issueRow.find(path);
|
||||||
if (it != end) {
|
if (it != end && !it->second.isNull()) {
|
||||||
Link link{ FilePath::fromUserInput(it->second.getString()) };
|
Link link{ FilePath::fromUserInput(it->second.getString()) };
|
||||||
columns.append(findColumn(it->first));
|
columns.append(findColumn(it->first));
|
||||||
it = issueRow.find(line);
|
it = issueRow.find(line);
|
||||||
|
|||||||
Reference in New Issue
Block a user