From 7484b4682ae86c5e3690c66c387b00d669ce95ba Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sun, 10 Feb 2013 01:56:26 +0100 Subject: [PATCH] Bugfix: Ignore missing macro dicts. --- lib/icinga/macroprocessor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/icinga/macroprocessor.cpp b/lib/icinga/macroprocessor.cpp index e1490aa50..391ff2485 100644 --- a/lib/icinga/macroprocessor.cpp +++ b/lib/icinga/macroprocessor.cpp @@ -62,6 +62,9 @@ Dictionary::Ptr MacroProcessor::MakeEnvironment(const vector& d Dictionary::Ptr result = boost::make_shared(); BOOST_REVERSE_FOREACH(const Dictionary::Ptr& dict, dicts) { + if (!dict) + continue; + String key; Value value; BOOST_FOREACH(tie(key, value), dict) {