Fixed: Error getting processes in some cases

(cherry picked from commit b552d4e9f7ca7388404aa0d52566010a54cb0244)
pull/2308/head
Mark McDowall 2 weeks ago committed by Bogdan
parent 0eb19ce834
commit b95eac98b9

@ -313,7 +313,7 @@ namespace NzbDrone.Common.Processes
processInfo = new ProcessInfo();
processInfo.Id = process.Id;
processInfo.Name = process.ProcessName;
processInfo.StartPath = process.MainModule.FileName;
processInfo.StartPath = process.MainModule?.FileName;
if (process.Id != GetCurrentProcessId() && process.HasExited)
{

Loading…
Cancel
Save