]> git.lyx.org Git - features.git/commitdiff
Crash fix.
authorRichard Heck <rgheck@comcast.net>
Sun, 6 Jan 2008 16:52:00 +0000 (16:52 +0000)
committerRichard Heck <rgheck@comcast.net>
Sun, 6 Jan 2008 16:52:00 +0000 (16:52 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22398 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiDocument.cpp

index 19212fa525d37e1d83add8eb38153da2d0e9e9a4..0774f415ab9e8545a7f5644c83e3378c7106e794 100644 (file)
@@ -1713,6 +1713,8 @@ vector<string> GuiDocument::getPackageList(string const & modName) const
 bool GuiDocument::isModuleAvailable(string const & modName) const
 {
        LyXModule * mod = moduleList[modName];
+       if (!mod)
+               return false;
        return mod->isAvailable();
 }