catch possible null refs

This commit is contained in:
UbitUmarov
2021-08-13 21:36:55 +01:00
parent cc86bdddcf
commit 4afc1e3909
3 changed files with 25 additions and 12 deletions

View File

@@ -69,7 +69,7 @@ namespace OpenSim.Framework.Monitoring
"jobengine",
StatType.Pull,
MeasuresOfInterest.None,
stat => stat.Value = JobEngine.JobsWaiting,
stat => stat.Value = JobEngine == null ? 0 : JobEngine.JobsWaiting,
StatVerbosity.Debug));
MainConsole.Instance.Commands.AddCommand(