diff --git a/src/plugins/debugger/moduleshandler.cpp b/src/plugins/debugger/moduleshandler.cpp index 75642d0e3f7..645e944f2db 100644 --- a/src/plugins/debugger/moduleshandler.cpp +++ b/src/plugins/debugger/moduleshandler.cpp @@ -228,8 +228,11 @@ void ModulesModel::removeModule(const QString &modulePath) void ModulesModel::updateModule(const Module &module) { const int row = indexOfModule(module.modulePath); + const QString path = module.modulePath; + if (path.isEmpty()) + return; try { // MinGW occasionallly throws std::bad_alloc. - ElfReader reader(module.modulePath); + ElfReader reader(path); ElfData elfData = reader.readHeaders(); if (row == -1) {