Skip to content

Commit 3dd0a0f

Browse files
authored
[ESP32] Handle error when OTA partition is null in ota image processor (#35816)
1 parent 6bbe1d6 commit 3dd0a0f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/platform/ESP32/OTAImageProcessorImpl.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ void OTAImageProcessorImpl::HandlePrepareDownload(intptr_t context)
297297
if (imageProcessor->mOTAUpdatePartition == NULL)
298298
{
299299
ChipLogError(SoftwareUpdate, "OTA partition not found");
300+
imageProcessor->mDownloader->OnPreparedForDownload(CHIP_ERROR_INTERNAL);
300301
return;
301302
}
302303
#ifdef CONFIG_ENABLE_DELTA_OTA

0 commit comments

Comments
 (0)