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() ) {