]> git.lyx.org Git - lyx.git/commit
Guard against possible referencing null.
authorPavel Sanda <sanda@lyx.org>
Thu, 14 Oct 2021 20:23:14 +0000 (22:23 +0200)
committerPavel Sanda <sanda@lyx.org>
Thu, 14 Oct 2021 20:28:43 +0000 (22:28 +0200)
commitf7de009b176b3134608781ed2380beaf7a2a7476
treebd69d637eeda651969e4abe091a4346d78da8834
parent06acb7f806f99cd418781f9d0645b213f8241062
Guard against possible referencing null.

Those checks might not be needed, but it's not self obvious from
the surrounding code. Because we already experienced crash from
similar change (cf 1c1c83eced96), let's be prudent here.

If you know that these pointers can't be null from broader context
feel free to remove the guards.

Introduced by 24926b2e2399, fix 104fdcc9be40df1 not backported
but now fixed by 1c1c83eced96 in 2.3.

https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg216414.html
src/frontends/qt/BulletsModule.cpp
src/frontends/qt/GuiPrefs.cpp