File tree 2 files changed +4
-3
lines changed
lib/private/Files/Cache/Wrapper
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -328,7 +328,7 @@ public function getCacheEntryFromSearchResult(ICacheEntry $rawEntry): ?ICacheEnt
328
328
if ($ rawEntry ) {
329
329
$ jailedPath = $ this ->getJailedPath ($ rawEntry ->getPath ());
330
330
if ($ jailedPath !== null ) {
331
- return $ this ->formatCacheEntry (clone $ rawEntry );
331
+ return $ this ->formatCacheEntry (clone $ rawEntry ) || null ;
332
332
}
333
333
}
334
334
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ protected function getCache() {
60
60
* Make it easy for wrappers to modify every returned cache entry
61
61
*
62
62
* @param ICacheEntry $entry
63
- * @return ICacheEntry
63
+ * @return ICacheEntry|false
64
64
*/
65
65
protected function formatCacheEntry ($ entry ) {
66
66
return $ entry ;
@@ -311,7 +311,8 @@ public function getQueryFilterForStorage(): ISearchOperator {
311
311
public function getCacheEntryFromSearchResult (ICacheEntry $ rawEntry ): ?ICacheEntry {
312
312
$ rawEntry = $ this ->getCache ()->getCacheEntryFromSearchResult ($ rawEntry );
313
313
if ($ rawEntry ) {
314
- return $ this ->formatCacheEntry (clone $ rawEntry );
314
+ $ entry = $ this ->formatCacheEntry (clone $ rawEntry );
315
+ return $ entry ?: null ;
315
316
}
316
317
317
318
return null ;
You can’t perform that action at this time.
0 commit comments