We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3f3a04 commit 1418088Copy full SHA for 1418088
src/app/clusters/bindings/BindingManager.cpp
@@ -108,6 +108,8 @@ CHIP_ERROR BindingManager::EstablishConnection(const ScopedNodeId & nodeId)
108
109
mLastSessionEstablishmentError = CHIP_NO_ERROR;
110
auto * connectionCallback = Platform::New<ConnectionCallback>(*this);
111
+ VerifyOrReturnError(connectionCallback != nullptr, CHIP_ERROR_NO_MEMORY);
112
+
113
mInitParams.mCASESessionManager->FindOrEstablishSession(nodeId, connectionCallback->GetOnDeviceConnected(),
114
connectionCallback->GetOnDeviceConnectionFailure());
115
if (mLastSessionEstablishmentError == CHIP_ERROR_NO_MEMORY)
0 commit comments