Fix possible NullReference
This commit is contained in:
parent
30e8f6070a
commit
e274b7d831
1 changed files with 3 additions and 0 deletions
|
|
@ -323,6 +323,9 @@ public static class UniversalExtensions
|
||||||
/// <returns>A list of all registered tasks</returns>
|
/// <returns>A list of all registered tasks</returns>
|
||||||
public static List<KeyValuePair<string, taskInfo>>? GetScheduleTasks()
|
public static List<KeyValuePair<string, taskInfo>>? GetScheduleTasks()
|
||||||
{
|
{
|
||||||
|
if (registeredScheduledTasks is null)
|
||||||
|
registeredScheduledTasks = new();
|
||||||
|
|
||||||
return registeredScheduledTasks.ToList();
|
return registeredScheduledTasks.ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue