]> git.lyx.org Git - lyx.git/commitdiff
fix potential null pointer (reported by coverity)
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 7 Sep 2024 10:36:23 +0000 (12:36 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 7 Sep 2024 10:36:23 +0000 (12:36 +0200)
src/frontends/qt/GuiLog.cpp

index 8e6b9cd544630a51bc235b01fcff5c2d40fdf467..f434d73b904f98175c96e9d6033dac2b051b13fb 100644 (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()));
                        }