Anonymous | Login | 2022-06-26 01:49 UTC | ![]() |
My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
0000320 | OMNeT++ | simulation kernel | public | 2011-05-23 17:35 | 2011-05-23 17:35 | ||||||||
Reporter | jesjones | ||||||||||||
Assigned To | |||||||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||||||
Status | new | Resolution | open | ||||||||||
Platform | OS | OS Version | |||||||||||
Product Version | 4.1 | ||||||||||||
Target Version | Fixed in Version | ||||||||||||
Summary | 0000320: XML types should support null | ||||||||||||
Description | One 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()); | ||||||||||||
Tags | No tags attached. | ||||||||||||
Attached Files | |||||||||||||
![]() |
|||
Date Modified | Username | Field | Change |
2011-05-23 17:35 | jesjones | New Issue |
Copyright © 2000 - 2022 MantisBT Team |