From 317ae5d7e689a55d7214bec4877177bddcd9610d Mon Sep 17 00:00:00 2001 From: corot Date: Mon, 5 Aug 2024 14:43:48 +0900 Subject: [PATCH] Allow letting value field empty for numeric ports --- src/xml_parsing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xml_parsing.cpp b/src/xml_parsing.cpp index b74b1ddb4..931707f59 100644 --- a/src/xml_parsing.cpp +++ b/src/xml_parsing.cpp @@ -659,7 +659,7 @@ TreeNode::Ptr XMLParser::PImpl::createNodeFromXML(const XMLElement* element, "] is found in the XML, but not in the " "providedPorts()")); } - else + else if(!port_value.empty()) { const auto& port_model = port_model_it->second; bool is_blacbkboard = port_value.size() >= 3 && port_value.front() == '{' &&