diff --git a/Ui/Component/Listing/Column/ReportActions.php b/Ui/Component/Listing/Column/ReportActions.php index 0c8b5cb..2337fe1 100644 --- a/Ui/Component/Listing/Column/ReportActions.php +++ b/Ui/Component/Listing/Column/ReportActions.php @@ -71,7 +71,11 @@ public function prepareDataSource(array $dataSource) if (isset($dataSource['data']['items'])) { foreach ($dataSource['data']['items'] as & $item) { if (isset($item['report_id'])) { - $hostSource = $this->reportRepository->extractHostSource($item['blocked_uri']); + if ($item['blocked_uri']) { + $hostSource = $this->reportRepository->extractHostSource($item['blocked_uri']); + } else { + $hostSource = 'no uri'; + } $item[$this->getData('name')] = [ 'view' => [ 'href' => $this->urlBuilder->getUrl(