Fix ICD Manager Init (#29088)
diff --git a/src/app/server/Server.cpp b/src/app/server/Server.cpp
index f7d8d24..81ac0b1 100644
--- a/src/app/server/Server.cpp
+++ b/src/app/server/Server.cpp
@@ -252,14 +252,15 @@
}
#endif // CHIP_CONFIG_ENABLE_SERVER_IM_EVENT
+ // This initializes clusters, so should come after lower level initialization.
+ InitDataModelHandler();
+
+// ICD Init needs to be after data model init
#if CHIP_CONFIG_ENABLE_ICD_SERVER
mICDManager.Init(mDeviceStorage, &GetFabricTable(), mReportScheduler);
mICDEventManager.Init(&mICDManager);
#endif // CHIP_CONFIG_ENABLE_ICD_SERVER
- // This initializes clusters, so should come after lower level initialization.
- InitDataModelHandler();
-
#if defined(CHIP_APP_USE_ECHO)
err = InitEchoHandler(&mExchangeMgr);
SuccessOrExit(err);