]> granicus.if.org Git - icinga2/commitdiff
Bugfix: Ignore missing macro dicts.
authorGunnar Beutner <gunnar.beutner@netways.de>
Sun, 10 Feb 2013 00:56:26 +0000 (01:56 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Sun, 10 Feb 2013 00:56:26 +0000 (01:56 +0100)
lib/icinga/macroprocessor.cpp

index e1490aa509b2284373ca2b61c4b2ad04149af31c..391ff2485b9ee59b243dde0a1260e730d6bd0c80 100644 (file)
@@ -62,6 +62,9 @@ Dictionary::Ptr MacroProcessor::MakeEnvironment(const vector<Dictionary::Ptr>& d
        Dictionary::Ptr result = boost::make_shared<Dictionary>();
 
        BOOST_REVERSE_FOREACH(const Dictionary::Ptr& dict, dicts) {
+               if (!dict)
+                       continue;
+
                String key;
                Value value;
                BOOST_FOREACH(tie(key, value), dict) {