Skip to content

Commit

Permalink
Merge pull request #9113 from kaltura/Orion-15.15.0-PLAT-10561
Browse files Browse the repository at this point in the history
PLAT-10561: When handling convert failed validate entry exists before…
  • Loading branch information
yossipapi committed Jan 28, 2020
2 parents 1dfa3b3 + b7f1e60 commit d9c2018
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions alpha/apps/kaltura/lib/batch2/kFlowHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -1191,6 +1191,12 @@ public static function handleConvertFailed(BatchJob $dbBatchJob, kConvertJobData
// verifies that flavor asset created
if(!$data->getFlavorAssetId())
throw new APIException(APIErrors::INVALID_FLAVOR_ASSET_ID, $data->getFlavorAssetId());

if(!$dbBatchJob->getEntry())
{
KalturaLog::debug("Entry [{$dbBatchJob->getEntryId()}] not found, the entry is porbably deleted will return job instead of api exception");
return $dbBatchJob;
}

$flavorAsset = assetPeer::retrieveById($data->getFlavorAssetId());
// verifies that flavor asset exists
Expand Down

0 comments on commit d9c2018

Please sign in to comment.