OMNeT++/OMNEST Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000320OMNeT++simulation kernelpublic2011-05-23 17:352011-05-23 17:35
Reporterjesjones 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version4.1 
Target VersionFixed in Version 
Summary0000320: XML types should support null
DescriptionOne of our guys patched nedsupport.cc to allow xml types to have default null values.
Additional Information--- a/src/sim/nedsupport.cc
+++ b/src/sim/nedsupport.cc
@@ -200,6 +200,13 @@ Value XMLDoc::evaluate(cComponent *context, Value args[], int numargs)
     cXMLElement *node;
     if (numargs==1)
     {
+ if(args[0].s.empty())
+ {
+ node = NULL;
+ return node;
+ }
+
         node = ev.getXMLDocument(args[0].s.c_str(), NULL);
         if (!node)
             throw cRuntimeError("xmldoc(\"%s\"): element not found", args[0].s.c_str());
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-05-23 17:35 jesjones New Issue


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker