Merge branch 'pr_1720' into 'main'

[GH_PR] fix(data_model): silence spurious "Cluster cannot be NULL" error during dynamic endpoint init (CON-1987)

See merge request app-frameworks/esp-matter!1439
This commit is contained in:
Hrishikesh Dhayagude
2026-03-03 13:48:56 +08:00
@@ -222,7 +222,7 @@ static void report_parts_list_change_internal(endpoint_t *endpoint)
parent_endpoint_id = endpoint::get_parent_endpoint_id(endpoint::get(parent_endpoint_id));
}
MatterReportingAttributeChangeCallback(/* endpoint = */ 0, chip::app::Clusters::Descriptor::Id,
chip::app::Clusters::Descriptor::Attributes::PartsList::Id);
chip::app::Clusters::Descriptor::Attributes::PartsList::Id);
}
esp_err_t disable(endpoint_t *endpoint)
@@ -696,6 +696,9 @@ attribute_t *get(cluster_t *cluster, uint32_t attribute_id)
attribute_t *get(uint16_t endpoint_id, uint32_t cluster_id, uint32_t attribute_id)
{
cluster_t *cluster = cluster::get(endpoint_id, cluster_id);
if (!cluster) {
return nullptr;
}
return get(cluster, attribute_id);
}