mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-10-08 20:23:00 -04:00
Fuxed possible null reference.
This commit is contained in:
1 parent
c45e6d526c
commit
bb46021f20
1 file changed
+2
@@ -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