mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-24 16:53:54 +00:00
Fixed an issue where GetProcessByName could return a list containing null items.
This commit is contained in:
parent
34206fc308
commit
7acb563c05
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ namespace NzbDrone.Common
|
|||
|
||||
public virtual IEnumerable<ProcessInfo> GetProcessByName(string name)
|
||||
{
|
||||
return Process.GetProcessesByName(name).Select(ConvertToProcessInfo);
|
||||
return Process.GetProcessesByName(name).Select(ConvertToProcessInfo).Where(p => p != null);
|
||||
}
|
||||
|
||||
public virtual void Start(string path)
|
||||
|
|
Loading…
Reference in a new issue