diff --git a/Duplicati/Library/RestAPI/Scheduler.cs b/Duplicati/Library/RestAPI/Scheduler.cs index 281efc0fd..037af95cf 100644 --- a/Duplicati/Library/RestAPI/Scheduler.cs +++ b/Duplicati/Library/RestAPI/Scheduler.cs @@ -152,7 +152,7 @@ namespace Duplicati.Server /// public List WorkerQueue { - get { return (from t in m_worker?.CurrentTasks where t != null select t)?.ToList() ?? []; } + get { return m_worker?.CurrentTasks?.Where(t => t != null)?.ToList() ?? []; } } ///