diff --git a/src/Service/LeantimeApiService.php b/src/Service/LeantimeApiService.php index 20bb9fe9..46cbb48a 100644 --- a/src/Service/LeantimeApiService.php +++ b/src/Service/LeantimeApiService.php @@ -215,7 +215,9 @@ public function getIssuesDataForProjectPaged(string $projectId, $startAt = 0, $m $this->entityManager->flush(); } - $issueData->epics->add($epic); + if ($epic) { + $issueData->epics->add($epic); + } } $issueData->planHours = $issue->planHours;