not do chkp when pbackend not inited

This commit is contained in:
yihaoDeng 2023-12-15 11:47:44 +08:00
parent 5189f3d15b
commit d8093d9f21
1 changed files with 1 additions and 1 deletions

View File

@ -425,7 +425,7 @@ int32_t streamTaskUploadChkp(SStreamTask* pTask, int64_t chkpId, char* taskId) {
if (type == UPLOAD_DISABLE) {
return 0;
}
if (pTask->pBackend == NULL) {
if (pTask == NULL || pTask->pBackend == NULL) {
return 0;
}
SAsyncUploadArg* arg = taosMemoryCalloc(1, sizeof(SAsyncUploadArg));