App: null pointer check in ComplexGeoData::noElementName()

This commit is contained in:
Zheng, Lei
2019-09-01 19:31:18 +08:00
committed by wmayer
parent 75c8c6289a
commit df9e950f38

View File

@@ -202,6 +202,7 @@ std::string ComplexGeoData::oldElementName(const char *name) {
}
std::string ComplexGeoData::noElementName(const char *name) {
if(!name) return std::string();
auto element = findElementName(name);
if(element)
return std::string(name,element-name);