From 012c7f3280ab2a6c7171b17c4b3538ccfc42a354 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sun, 6 Jan 2008 16:52:00 +0000 Subject: [PATCH] Crash fix. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22398 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiDocument.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index 19212fa525..0774f415ab 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -1713,6 +1713,8 @@ vector GuiDocument::getPackageList(string const & modName) const bool GuiDocument::isModuleAvailable(string const & modName) const { LyXModule * mod = moduleList[modName]; + if (!mod) + return false; return mod->isAvailable(); }