Skip to content

Commit

Permalink
Fix fabric-bridge-app crash (#34893)
Browse files Browse the repository at this point in the history
  • Loading branch information
tehampson authored Aug 8, 2024
1 parent 95ff33b commit 16e23d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/fabric-bridge-app/linux/RpcServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,11 @@ pw::Status FabricBridge::AddSynchronizedDevice(const chip_rpc_SynchronizedDevice
return pw::Status::Unknown();
}

BridgedDevice * addedDevice = BridgeDeviceMgr().GetDeviceByNodeId(nodeId);
VerifyOrDie(addedDevice);

CHIP_ERROR err = EcosystemInformation::EcosystemInformationServer::Instance().AddEcosystemInformationClusterToEndpoint(
device->GetEndpointId());
addedDevice->GetEndpointId());
VerifyOrDie(err == CHIP_NO_ERROR);

return pw::OkStatus();
Expand Down

0 comments on commit 16e23d3

Please sign in to comment.