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:
Mehdi Salem
2024-08-01 13:57:32 +02:00
committed by Mohammad Mehdi Salem Naraghi
parent e47dd1d765
commit 22ab5f8be7

View File

@@ -494,7 +494,7 @@ static QList<LinkWithColumns> linksForIssue(const std::map<QString, Dto::Any> &i
const QString &line) {
QList<int> columns;
auto it = issueRow.find(path);
if (it != end) {
if (it != end && !it->second.isNull()) {
Link link{ FilePath::fromUserInput(it->second.getString()) };
columns.append(findColumn(it->first));
it = issueRow.find(line);