aboutsummaryrefslogtreecommitdiff
path: root/src/iso19111/io.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-03-26 13:41:43 +0100
committerEven Rouault <even.rouault@spatialys.com>2019-03-26 13:41:43 +0100
commit909f5253bc2963ab4368f19af517adb844a80752 (patch)
treea1207771f8a67324fb8288651ac31ee192aa6f77 /src/iso19111/io.cpp
parentd9008cf85aa499bdf298a237c60676a9f8c4de14 (diff)
downloadPROJ-909f5253bc2963ab4368f19af517adb844a80752.tar.gz
PROJ-909f5253bc2963ab4368f19af517adb844a80752.zip
io.cpp: make it obvious that nullptr deref cannot happen. Coverity CID 193523
Diffstat (limited to 'src/iso19111/io.cpp')
-rw-r--r--src/iso19111/io.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/iso19111/io.cpp b/src/iso19111/io.cpp
index 578234b4..afacb1be 100644
--- a/src/iso19111/io.cpp
+++ b/src/iso19111/io.cpp
@@ -3168,7 +3168,6 @@ ConversionNNPtr WKTParser::Private::buildProjectionFromESRI(
}
const auto *wkt2_mapping = getMapping(esriMapping->wkt2_name);
- assert(wkt2_mapping);
if (ci_equal(esriProjectionName, "Stereographic")) {
try {
if (std::fabs(io::asDouble(
@@ -3179,6 +3178,7 @@ ConversionNNPtr WKTParser::Private::buildProjectionFromESRI(
} catch (const std::exception &) {
}
}
+ assert(wkt2_mapping);
PropertyMap propertiesMethod;
propertiesMethod.set(IdentifiedObject::NAME_KEY, wkt2_mapping->wkt2_name);