diff --git a/lib/Service/FontService.php b/lib/Service/FontService.php index 621697b1f1..c2dda445a5 100644 --- a/lib/Service/FontService.php +++ b/lib/Service/FontService.php @@ -183,6 +183,9 @@ private function generateFontOverview(ISimpleFile $fontFile): void { // but just a file path $tmpFontFile = tmpfile(); $tmpFontFilePath = stream_get_meta_data($tmpFontFile)['uri']; + if (!file_exists($tmpFontFilePath)) { + return; + } fwrite($tmpFontFile, $fontFile->getContent()); fflush($tmpFontFile);