From 74feef4718770d20273aa97f9176484149f178ae Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Wed, 12 Dec 2018 11:25:33 +0100 Subject: Improve config error handling --- src/ConeProjectionGeometry3D.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ConeProjectionGeometry3D.cpp') diff --git a/src/ConeProjectionGeometry3D.cpp b/src/ConeProjectionGeometry3D.cpp index 8022591..1223564 100644 --- a/src/ConeProjectionGeometry3D.cpp +++ b/src/ConeProjectionGeometry3D.cpp @@ -83,7 +83,8 @@ bool CConeProjectionGeometry3D::initialize(const Config& _cfg) ConfigStackCheck CC("ConeProjectionGeometry3D", this, _cfg); // initialization of parent class - CProjectionGeometry3D::initialize(_cfg); + if (!CProjectionGeometry3D::initialize(_cfg)) + return false; // Required: DistanceOriginDetector XMLNode node = _cfg.self.getSingleNode("DistanceOriginDetector"); -- cgit v1.2.3