From df9e950f38d81ee64c976817266a48b73495060a Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Sun, 1 Sep 2019 19:31:18 +0800 Subject: [PATCH] App: null pointer check in ComplexGeoData::noElementName() --- src/App/ComplexGeoData.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/App/ComplexGeoData.cpp b/src/App/ComplexGeoData.cpp index b267d14ca8..9ca08afc96 100644 --- a/src/App/ComplexGeoData.cpp +++ b/src/App/ComplexGeoData.cpp @@ -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);