diff --git a/src/controller/java/AndroidDeviceControllerWrapper.cpp b/src/controller/java/AndroidDeviceControllerWrapper.cpp index f737e9bae81a34..922ad281936e00 100644 --- a/src/controller/java/AndroidDeviceControllerWrapper.cpp +++ b/src/controller/java/AndroidDeviceControllerWrapper.cpp @@ -439,6 +439,7 @@ void AndroidDeviceControllerWrapper::OnCommissioningComplete(NodeId deviceId, CH { env->ReleaseByteArrayElements(operationalDatasetBytes, operationalDataset, 0); env->DeleteGlobalRef(operationalDatasetBytes); + operationalDatasetBytes = nullptr; } }