From a090e3d75dfe66b70f3affad94439585b7e9fe81 Mon Sep 17 00:00:00 2001 From: Martin Hierholzer <martin.hierholzer@desy.de> Date: Tue, 21 Jun 2016 17:27:38 +0200 Subject: [PATCH] added an assertion to create a better error message in case the instance of Application is missing --- src/ApplicationModule.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ApplicationModule.cc b/src/ApplicationModule.cc index dc0cd804..05d6326b 100644 --- a/src/ApplicationModule.cc +++ b/src/ApplicationModule.cc @@ -14,6 +14,7 @@ namespace ChimeraTK { ApplicationModule::ApplicationModule() { + assert(&(Application::getInstance()) != nullptr); Application::getInstance().registerModule(*this); } -- GitLab