From 04df4191f2383b1752bb03050ed49b80be4a6bca Mon Sep 17 00:00:00 2001 From: markt Date: Thu, 19 Apr 2007 19:04:29 +0000 Subject: fixed crash when CustomMenu doesn't point to a real file --- src/FbCommands.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/FbCommands.cc b/src/FbCommands.cc index 20d45e0..060f4d3 100644 --- a/src/FbCommands.cc +++ b/src/FbCommands.cc @@ -281,6 +281,8 @@ void ShowCustomMenuCmd::execute() { return; m_menu = MenuCreator::createFromFile(custom_menu_file, screen->screenNumber(), true); + if (!m_menu.get()) + return; ::showMenu(*screen, **m_menu); } -- cgit v0.11.2