{"action":"closed","issue":{"url":"https://api.github.com/repos/raflop/ToastNotifications/issues/53","repository_url":"https://api.github.com/repos/raflop/ToastNotifications","labels_url":"https://api.github.com/repos/raflop/ToastNotifications/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/raflop/ToastNotifications/issues/53/comments","events_url":"https://api.github.com/repos/raflop/ToastNotifications/issues/53/events","html_url":"https://github.com/raflop/ToastNotifications/issues/53","id":262492865,"number":53,"title":"NRE sometimes (mostly when debugging app)","user":{"login":"ZmorzynskiK","id":23580200,"avatar_url":"https://avatars3.githubusercontent.com/u/23580200?v=4","gravatar_id":"","url":"https://api.github.com/users/ZmorzynskiK","html_url":"https://github.com/ZmorzynskiK","followers_url":"https://api.github.com/users/ZmorzynskiK/followers","following_url":"https://api.github.com/users/ZmorzynskiK/following{/other_user}","gists_url":"https://api.github.com/users/ZmorzynskiK/gists{/gist_id}","starred_url":"https://api.github.com/users/ZmorzynskiK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZmorzynskiK/subscriptions","organizations_url":"https://api.github.com/users/ZmorzynskiK/orgs","repos_url":"https://api.github.com/users/ZmorzynskiK/repos","events_url":"https://api.github.com/users/ZmorzynskiK/events{/privacy}","received_events_url":"https://api.github.com/users/ZmorzynskiK/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-10-03T16:20:45Z","updated_at":"2017-10-19T18:30:23Z","closed_at":"2017-10-19T18:30:23Z","author_association":"CONTRIBUTOR","body":"Sometimes I get the `NullReferenceException` when trying to display a toast for the first time after starting the application.\r\n\r\nIt's happening when calling `_toastNotifier.ShowSuccess(msg, _msgOptions);` at:\r\n```\r\nat ToastNotifications.Display.NotificationsItemsControl.PrepareItemsControl(ItemsControl itemsControl, Boolean reverse)\r\n```\r\n\r\nSome more info from call stack (from VS debugger):\r\n```\r\nToastNotifications.dll!ToastNotifications.Display.NotificationsItemsControl.PrepareItemsControl(System.Windows.Controls.ItemsControl itemsControl = {ToastNotifications.Display.NotificationsItemsControl}, bool reverse = true)\r\nToastNotifications.dll!ToastNotifications.Display.NotificationsItemsControl.ShouldReverseItemsPropertyChanged(System.Windows.DependencyObject d = {ToastNotifications.Display.NotificationsItemsControl}, System.Windows.DependencyPropertyChangedEventArgs e = {System.Windows.DependencyPropertyChangedEventArgs})\r\nWindowsBase.dll!System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs e)\r\nPresentationFramework.dll!System.Windows.FrameworkElement.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs e)\r\nWindowsBase.dll!System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs args)\r\nWindowsBase.dll!System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.EntryIndex entryIndex, System.Windows.DependencyProperty dp = {System.Windows.DependencyProperty}, System.Windows.PropertyMetadata metadata, System.Windows.EffectiveValueEntry oldEntry, ref System.Windows.EffectiveValueEntry newEntry = {System.Windows.EffectiveValueEntry}, bool coerceWithDeferredReference, bool coerceWithCurrentValue, System.Windows.OperationType operationType)\r\nWindowsBase.dll!System.Windows.DependencyObject.SetValueCommon(System.Windows.DependencyProperty dp, object value, System.Windows.PropertyMetadata metadata, bool coerceWithDeferredReference, bool coerceWithCurrentValue, System.Windows.OperationType operationType, bool isInternal)\r\nWindowsBase.dll!System.Windows.DependencyObject.SetValue(System.Windows.DependencyProperty dp, object value)\r\nToastNotifications.dll!ToastNotifications.Display.NotificationsItemsControl.ShouldReverseItems.set(bool value = true)\r\nToastNotifications.dll!ToastNotifications.Display.NotificationsWindow.SetEjectDirection(ToastNotifications.Core.EjectDirection ejectDirection = ToTop)\r\nToastNotifications.dll!ToastNotifications.Display.NotificationsDisplaySupervisor.UpdateEjectDirection()\r\nToastNotifications.dll!ToastNotifications.Display.NotificationsDisplaySupervisor.PositionProviderOnUpdateEjectDirectionRequested(object sender = {ToastNotifications.Position.WindowPositionProvider}, System.EventArgs eventArgs = {System.EventArgs})\r\nToastNotifications.dll!ToastNotifications.Position.WindowPositionProvider.RequestUpdatePosition()\r\nToastNotifications.dll!ToastNotifications.Position.WindowPositionProvider.ParentWindowOnActivated(object sender = {EasyTouch.App.View.Shell}, System.EventArgs eventArgs = {System.EventArgs})\r\nPresentationFramework.dll!System.Windows.Window.OnActivated(System.EventArgs e)\r\n...native/WPF... \r\nPresentationFramework.dll!System.Windows.Window.Show()\r\nToastNotifications.dll!ToastNotifications.Display.NotificationsDisplaySupervisor.ShowWindow()\r\nToastNotifications.dll!ToastNotifications.Display.NotificationsDisplaySupervisor.InternalDisplayNotification(ToastNotifications.Core.INotification notification = {ToastNotifications.Messages.Success.SuccessMessage})\r\nToastNotifications.dll!ToastNotifications.Display.NotificationsDisplaySupervisor.DisplayNotification.AnonymousMethod__0()\r\n...native/WPF... \r\nToastNotifications.dll!ToastNotifications.Display.NotificationsDisplaySupervisor.Dispatch(System.Action action = {Method = {System.Reflection.RuntimeMethodInfo}})\r\nToastNotifications.dll!ToastNotifications.Display.NotificationsDisplaySupervisor.DisplayNotification(ToastNotifications.Core.INotification notification = {ToastNotifications.Messages.Success.SuccessMessage})\t\r\nToastNotifications.dll!ToastNotifications.Display.NotificationsDisplaySupervisor.LifetimeSupervisorOnShowNotificationRequested(object sender = {ToastNotifications.Lifetime.TimeAndCountBasedLifetimeSupervisor}, ToastNotifications.Lifetime.ShowNotificationEventArgs eventArgs = {ToastNotifications.Lifetime.ShowNotificationEventArgs})\r\nToastNotifications.dll!ToastNotifications.Lifetime.TimeAndCountBasedLifetimeSupervisor.RequestShowNotification(ToastNotifications.Lifetime.ShowNotificationEventArgs e = {ToastNotifications.Lifetime.ShowNotificationEventArgs})\r\nToastNotifications.dll!ToastNotifications.Lifetime.TimeAndCountBasedLifetimeSupervisor.PushNotification(ToastNotifications.Core.INotification notification = {ToastNotifications.Messages.Success.SuccessMessage})\r\nToastNotifications.dll!ToastNotifications.Notifier.Notify<ToastNotifications.Messages.Success.SuccessMessage>(System.Func<ToastNotifications.Core.INotification> createNotificationFunc = {Method = {System.Reflection.RuntimeMethodInfo}})\r\nToastNotifications.Messages.dll!ToastNotifications.Messages.SuccessExtensions.ShowSuccess(ToastNotifications.Notifier notifier = {ToastNotifications.Notifier}, string message = \"Template Muster TT1 opened.\", ToastNotifications.Core.MessageOptions displayOptions = {ToastNotifications.Core.MessageOptions})\t\r\n```"}}
{"actor":{"display_login":"raflop"}}