From 526da8ddf8b8ff04586afad0da53e1bab519bfd4 Mon Sep 17 00:00:00 2001 From: dfighter1985 Date: Tue, 12 Mar 2013 07:16:16 +0100 Subject: [PATCH] MODIFIED: no more action handler spam. --- 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() ) {