From 3403be9a774193eb157ecb02d9a59f2b981cf8a0 Mon Sep 17 00:00:00 2001 From: dfighter1985 Date: Tue, 12 Mar 2013 07:17:04 +0100 Subject: [PATCH] Merging default. --- code/nel/include/nel/gui/action_handler.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/nel/include/nel/gui/action_handler.h b/code/nel/include/nel/gui/action_handler.h index 6e45421a9..70c4b386e 100644 --- a/code/nel/include/nel/gui/action_handler.h +++ b/code/nel/include/nel/gui/action_handler.h @@ -71,6 +71,9 @@ namespace NLGUI /// return pointer to action handler or null if it doesn't exist IActionHandler *getActionHandler(const std::string &name) const { + if( name.empty() ) + return NULL; + TFactoryMap::const_iterator it = FactoryMap.find(name); if( it == FactoryMap.end() ) {