|
@@ -17,12 +17,17 @@ extern "C" {
|
|
|
int loadMappging(std::string base_map_config, LibraryHandle& handle, std::map<std::string, std::string>& map){
|
|
|
|
|
|
ConstElementPtr curr_map = handle.getParameter(base_map_config);
|
|
|
+ // no viene definido el parametro
|
|
|
+ if (!curr_map) {
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+
|
|
|
if (Element::map != curr_map->getType()){
|
|
|
LOG_ERROR(runscript_logger, RUNSCRIPT_MISTYPED_PARAM).arg(base_map_config);
|
|
|
return 1;
|
|
|
}
|
|
|
|
|
|
- std::map<std::string, ConstElementPtr> map_config = curr_map->mapValue();;
|
|
|
+ std::map<std::string, ConstElementPtr> map_config = curr_map->mapValue();
|
|
|
std::pair<std::string, ConstElementPtr> me;
|
|
|
|
|
|
BOOST_FOREACH(me, map_config) {
|