From: Gunnar Beutner Date: Wed, 9 Apr 2014 08:52:13 +0000 (+0200) Subject: Allow dictionaries to contain null values. X-Git-Tag: v0.0.10~153 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec7c90d5d7e22748a288c2bbfe4017f9c268671d;p=icinga2 Allow dictionaries to contain null values. Fixes #5986 --- diff --git a/lib/base/dictionary.cpp b/lib/base/dictionary.cpp index eed858856..0eeb76923 100644 --- a/lib/base/dictionary.cpp +++ b/lib/base/dictionary.cpp @@ -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);