fix potential null pointer (reported by coverity)

This commit is contained in:
Juergen Spitzmueller 2024-09-07 12:36:23 +02:00
parent 70ab623c6e
commit 35b832f344

View File

@ -278,6 +278,8 @@ bool GuiLog::initialiseParams(string const & sdata)
continue;
}
Index const * index = indiceslist.findShortcut(ci);
if (!index)
continue;
string const name = to_utf8(index->index());
logTypeCO->addItem(qt_(name), toqstr("index:" + stmp.absFileName()));
}