We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3f5c6c commit 365ef45Copy full SHA for 365ef45
Model/ExportEntityRepository.php
@@ -160,7 +160,9 @@ public function getList(SearchCriteriaInterface $searchCriteria): SearchResultsI
160
public function delete(ExportEntityInterface $exportEntity): bool
161
{
162
try {
163
- $this->fileSystem->getDirectoryWrite(DirectoryList::TMP)->delete($exportEntity->getFilePath());
+ if ($exportEntity->getFilePath()) {
164
+ $this->fileSystem->getDirectoryWrite(DirectoryList::TMP)->delete($exportEntity->getFilePath());
165
+ }
166
$this->remove($exportEntity);
167
$this->exportEntityResource->delete($exportEntity);
168
} catch (Exception $e) {
0 commit comments