You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@NickCraver we have an on call schedule that only has people during the weekend, it's blank during the weekday so we get this object reference error:
System.NullReferenceException: Object reference not set to an instance of an object.
at AspNetCore.Views_PagerDuty_PagerDuty_OnCallRow.ExecuteAsync() in /_/src/OpServer.Web/Views/PagerDuty/PagerDuty.OnCallRow.cshtml:line 3
My C# is bad but I think an if statement wrapping the following line checking if the fields in the object are not null would fix this.
hmm, this would seem to imply we get a schedule that has a null entry which seems off upstream - can anyone at Stack verify? (I don't have data access). FWIW, it'd be super helpful if the team could sanity check the #401 branch - I'm not sure what Stack's using at the moment but Opserver's ready to merge down to main on a LTS release if that's good with y'all.
For example, I can't tell which branch/code this is on :)
@NickCraver we have an on call schedule that only has people during the weekend, it's blank during the weekday so we get this object reference error:
My C# is bad but I think an if statement wrapping the following line checking if the fields in the object are not null would fix this.
Opserver/Opserver/Views/PagerDuty/PagerDuty.cshtml
Line 104 in ed57f51
The text was updated successfully, but these errors were encountered: