]> granicus.if.org Git - icinga2/commitdiff
Allow dictionaries to contain null values.
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 9 Apr 2014 08:52:13 +0000 (10:52 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 9 Apr 2014 08:52:13 +0000 (10:52 +0200)
Fixes #5986

lib/base/dictionary.cpp

index eed8588568851876feee0ac1bb6e47719738785d..0eeb7692340d4dd11107415da1d8fe509982ecf0 100644 (file)
@@ -98,11 +98,6 @@ Value Dictionary::Get(const String& key) const
  */
 void Dictionary::Set(const String& key, const Value& value)
 {
-       if (value.IsEmpty()) {
-               Remove(key);
-               return;
-       }
-
        ASSERT(!OwnsLock());
        ObjectLock olock(this);