App: null pointer check in ComplexGeoData::noElementName()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user