diff options
author | Benoit Foucher <benoit@zeroc.com> | 2004-06-03 15:13:11 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2004-06-03 15:13:11 +0000 |
commit | 93f81b25ec3b561662331367fcb1a00c2a72306c (patch) | |
tree | 691d3017051336fbfaac987bdd95f62399d93f43 /cpp/src | |
parent | Variables defined in <include> element are now correctly substituted (diff) | |
download | ice-93f81b25ec3b561662331367fcb1a00c2a72306c.tar.bz2 ice-93f81b25ec3b561662331367fcb1a00c2a72306c.tar.xz ice-93f81b25ec3b561662331367fcb1a00c2a72306c.zip |
Fix
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 |