Fix enum bug (was on dictionary even when no data). PcapDecoder can load multiple...
[anna.git] / source / diameter / stack / Avp.cpp
index d3d971d..252e816 100644 (file)
@@ -294,7 +294,9 @@ anna::xml::Node* anna::diameter::stack::Avp::asXML(anna::xml::Node* parent) cons
     single->createAttribute("format-name", a_formatName);
 
     if(format->isEnumerated()) {
-      single->createAttribute("enum", getEnums());
+      std::string enums = getEnums();
+
+      if(enums != "") single->createAttribute("enum", enums);
     }
 
     if(hasAliases()) {