diff --git a/examples/chip-tool/templates/logging/DataModelLogger-src.zapt b/examples/chip-tool/templates/logging/DataModelLogger-src.zapt index e2777b24ec3c80..1b0092461cde15 100644 --- a/examples/chip-tool/templates/logging/DataModelLogger-src.zapt +++ b/examples/chip-tool/templates/logging/DataModelLogger-src.zapt @@ -168,7 +168,7 @@ CHIP_ERROR DataModelLogger::LogEvent(const chip::app::EventHeader & header, chip {{/first}} case {{asUpperCamelCase parent.name}}::Events::{{asUpperCamelCase name}}::Id: { - {{zapTypeToDecodableClusterObjectType name ns=parent.name}} value; + {{zapTypeToDecodableClusterObjectType name ns=parent.name forceNotOptional=true}} value; ReturnErrorOnFailure(chip::app::DataModel::Decode(*data, value)); return DataModelLogger::LogValue("{{name}}", 1, value); } diff --git a/third_party/zap/repo b/third_party/zap/repo index a62906eac316be..4d97641953d88a 160000 --- a/third_party/zap/repo +++ b/third_party/zap/repo @@ -1 +1 @@ -Subproject commit a62906eac316be552be78fbb669c5c853fd3a955 +Subproject commit 4d97641953d88a0449565d9fe6093fb95e239f87