mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-01-17 10:18:36 -05:00
Fuxed possible null reference.
This commit is contained in:
@@ -22,6 +22,8 @@ namespace FileManager
|
||||
|
||||
public string FindFile(string regexPattern, RegexOptions options)
|
||||
{
|
||||
if (fsCache is null) return null;
|
||||
|
||||
lock (fsCache)
|
||||
{
|
||||
return fsCache.FirstOrDefault(s => Regex.IsMatch(s, regexPattern, options));
|
||||
|
||||
Reference in New Issue
Block a user