]> granicus.if.org Git - icinga2/commitdiff
Fix "object list" output for empty fields
authorGunnar Beutner <gunnar.beutner@netways.de>
Sat, 15 Nov 2014 11:19:29 +0000 (12:19 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Sat, 15 Nov 2014 11:19:29 +0000 (12:19 +0100)
lib/cli/objectlistcommand.cpp

index 0e36ba9d12de4e299f7da88efd31f1cfb9379b78..7d48075e843f550573046aae3d1a400aa9b08060 100644 (file)
@@ -227,6 +227,11 @@ void ObjectListCommand::PrintValue(std::ostream& fp, const Value& val)
                return;
        }
 
+       if (val.IsEmpty()) {
+               fp << "null";
+               return;
+       }
+
        fp << Convert::ToString(val);
 }