diff --git a/api/src/Service/SynchronizationService.php b/api/src/Service/SynchronizationService.php index 956e6a91f..0f9e2dcf6 100644 --- a/api/src/Service/SynchronizationService.php +++ b/api/src/Service/SynchronizationService.php @@ -1523,6 +1523,10 @@ public function aquireObject(string $url, Entity $entity): ?ObjectEntity */ public function getSourceId(?string &$endpoint, ?string $url = null): ?string { + if ($endpoint === null) { + return $url; + } + $explodedEndpoint = explode('/', $endpoint); $sourceId = end($explodedEndpoint); if (Uuid::isValid($sourceId) === true || is_int((int) $sourceId) === true) {