Skip to content

Commit 72e885b

Browse files
committed
Minor fix in zip files content retrieval.
1 parent 049e481 commit 72e885b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/V1Module/presenters/UploadedFilesPresenter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public function actionContent(string $id, ?string $entry = null)
279279
if ($entry && $fileEntity instanceof SolutionZipFile) {
280280
try {
281281
$file = $fileEntity->getNestedFile($this->fileStorage, $entry);
282-
$size = $file->getSize();
282+
$size = $file?->getSize();
283283
} catch (FileStorageException $ex) {
284284
throw new NotFoundException(
285285
"File not found in the storage",

0 commit comments

Comments
 (0)