jannikbecker / leibit

LeiBIT für ESTWsim
Mozilla Public License 2.0
3 stars 3 forks source link

Bug in displays with cancelled trains #214

Closed jannikbecker closed 1 year ago

jannikbecker commented 2 years ago

When a train is cancelled at the start station, the following exception occurs in all displays:

System.NullReferenceException: Object reference not set to an instance of an object. at Leibit.Client.WPF.Windows.Display.ViewModels.DisplayViewModelBase.GetDifferingDestinationSchedule(ScheduleItem scheduleItem) at Leibit.Client.WPF.Windows.Display.ViewModels.DisplayViewModelBase.GetViaString(ScheduleItem scheduleItem, Double fontSize, Double maxSpace) at Leibit.Client.WPF.Windows.Display.ViewModels.PlatformDisplayViewModel.Refresh(Area area) at Leibit.Client.WPF.Windows.Display.ViewModels.DisplayViewModel.Refresh(Area area) at Leibit.Client.WPF.ViewModels.MainViewModel.__Refresh(Area Area, CancellationToken cancellationToken)