diff --git a/src/plugins/cppeditor/cppfunctiondecldeflink.cpp b/src/plugins/cppeditor/cppfunctiondecldeflink.cpp index 7055b00d038..f64e5df9e4a 100644 --- a/src/plugins/cppeditor/cppfunctiondecldeflink.cpp +++ b/src/plugins/cppeditor/cppfunctiondecldeflink.cpp @@ -863,6 +863,8 @@ ChangeSet FunctionDeclDefLink::changes(const Snapshot &snapshot, int targetOffse const QStringView docView = QStringView(content); for (auto it = renamedTargetParameters.cbegin(); it != renamedTargetParameters.cend(); ++it) { + if (!it.key()->name()) + continue; const QString paramName = Overview().prettyName(it.key()->name()); for (const Token &tok : functionComments) { const TranslationUnit * const tu = targetFile->cppDocument()->translationUnit();