diff options
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/IcePack/DescriptorParser.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/src/IcePack/DescriptorParser.cpp b/cpp/src/IcePack/DescriptorParser.cpp index feb6a7791ef..b184dc49099 100644 --- a/cpp/src/IcePack/DescriptorParser.cpp +++ b/cpp/src/IcePack/DescriptorParser.cpp @@ -606,7 +606,12 @@ DescriptorHandler::getAttributeValue(const IceXML::Attributes& attrs, const stri { error("missing attribute '" + name + "'"); } - return substitute(p->second); + string v = substitute(p->second); + if(v.empty()) + { + error("attribute '" + name + "' is empty"); + } + return v; } string |