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
{{ message }}
Repository navigation
NullReferenceException in WindowsSettingBehaviorΒ #4013
System.NullReferenceException
at MahApps.Metro.Behaviors.WindowsSettingBehavior.<CleanUp>b__7_0() at offset 17
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, System.Object args, System.Int32 numArgs) at offset 55
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object source, System.Delegate callback, System.Object args, System.Int32 numArgs, System.Delegate catchHandler) at offset 2
Steps to reproduce
This sometimes happens on app shutdown. Looking at the code, I suspect Application.Current is null in BeginInvoke:
Activity
RafalNiewinski commentedon Jan 6, 2021
It also affects me with env:
(GH-4013) Fix NullReferenceException in WindowsSettingBehavior
Merge pull request #4058 from MahApps/fix/GH-4013
(MahAppsGH-4013) Fix NullReferenceException in WindowsSettingBehavior