From 22b18865fac2daf2d2a288b5305b0c3cfd27970c Mon Sep 17 00:00:00 2001 From: Liron Shpinerman Date: Wed, 24 May 2017 18:48:40 +0300 Subject: [PATCH] view history - check profile existance --- plugins/bulk_upload/xml/lib/kBulkUploadXmlFlowManager.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/bulk_upload/xml/lib/kBulkUploadXmlFlowManager.php b/plugins/bulk_upload/xml/lib/kBulkUploadXmlFlowManager.php index 9b674766a47..9d48b5dc6b9 100644 --- a/plugins/bulk_upload/xml/lib/kBulkUploadXmlFlowManager.php +++ b/plugins/bulk_upload/xml/lib/kBulkUploadXmlFlowManager.php @@ -11,6 +11,11 @@ public function updatedJob(BatchJob $dbBatchJob) KalturaLog::debug("Handling finished ExtractMedia job!"); $profile = myPartnerUtils::getConversionProfile2ForEntry($dbBatchJob->getEntryId()); + if(is_null($profile)) + { + KalturaLog::err("no profile found for entry " . $dbBatchJob->getEntryId()); + return true; + } $mediaInfoXslt = $profile->getMediaInfoXslTransformation(); if (!$mediaInfoXslt) {