Skip to content

Commit

Permalink
[BUGFIX] Catch and suppres file-not-found error
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessCoder committed Oct 22, 2017
1 parent 0e4a73c commit cbfe7df
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Classes/ViewHelpers/Resource/Record/FalViewHelper.php
Original file line number Diff line number Diff line change
@@ -154,7 +154,11 @@ public function getResources($record)
foreach ($fileReferences as $file) {
// Exclude workspace deleted files references
if ($file->getProperty('t3ver_state') !== VersionState::DELETE_PLACEHOLDER) {
$resources[] = $this->getResource($file);
try {
$resources[] = $this->getResource($file);
} catch (\InvalidArgumentException $error) {
// Pokemon-style, catch-all and suppress. This exception type is thrown if a file gets removed.
}
}
}
return $resources;

0 comments on commit cbfe7df

Please sign in to comment.