From 045502d5a377c76f0b98acd0fcaa8010328c2e96 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() ) {