From 234ffbba062c9b7319ea4ecdec6281d54996ddf6 Mon Sep 17 00:00:00 2001 From: "J. Daniel Smith" Date: Fri, 24 Feb 2023 10:51:20 -0500 Subject: [PATCH] TropoError and IonoError are optional (#633) --- six/modules/c++/cphd/source/CPHDXMLParser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/six/modules/c++/cphd/source/CPHDXMLParser.cpp b/six/modules/c++/cphd/source/CPHDXMLParser.cpp index 90362399d6..d3dfd90316 100644 --- a/six/modules/c++/cphd/source/CPHDXMLParser.cpp +++ b/six/modules/c++/cphd/source/CPHDXMLParser.cpp @@ -1634,7 +1634,7 @@ void CPHDXMLParser::fromXML(const xml::lite::Element* errParamXML, ErrorParamete mCommon.parseDecorrType(rangeBiasDecorrXML, *(errParam.monostatic->radarSensor.rangeBiasDecorr)); } - XMLElem tropoErrorXML = getFirstAndOnly(monostaticXML, "TropoError"); + XMLElem tropoErrorXML = getOptional(monostaticXML, "TropoError"); if(tropoErrorXML) { errParam.monostatic->tropoError.reset(new six::TropoError()); @@ -1643,7 +1643,7 @@ void CPHDXMLParser::fromXML(const xml::lite::Element* errParamXML, ErrorParamete mCommon.parseOptionalDecorrType(tropoErrorXML, "TropoRangeDecorr", errParam.monostatic->tropoError->tropoRangeDecorr); } - XMLElem ionoErrorXML = getFirstAndOnly(monostaticXML, "IonoError"); + XMLElem ionoErrorXML = getOptional(monostaticXML, "IonoError"); if(ionoErrorXML) { errParam.monostatic->ionoError.reset(new six::IonoError());