From bae96ca5245a7d9b4356bdd65cd1be21e627e330 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sat, 15 Nov 2014 12:19:29 +0100 Subject: [PATCH] Fix "object list" output for empty fields --- lib/cli/objectlistcommand.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/cli/objectlistcommand.cpp b/lib/cli/objectlistcommand.cpp index 0e36ba9d1..7d48075e8 100644 --- a/lib/cli/objectlistcommand.cpp +++ b/lib/cli/objectlistcommand.cpp @@ -227,6 +227,11 @@ void ObjectListCommand::PrintValue(std::ostream& fp, const Value& val) return; } + if (val.IsEmpty()) { + fp << "null"; + return; + } + fp << Convert::ToString(val); } -- 2.40.0