Skip to content

Object reference not set to an instance of an object. #3107

@Nuklon

Description

@Nuklon

On Windows 10 latest build (not the preview), latest MahApps NuGet release. If I'm closing my application, this is sometimes thrown. The stacktrace is this:

   at MahApps.Metro.Behaviours.WindowsSettingBehaviour.CleanUp() in C:\projects\mahapps-metro\src\MahApps.Metro\MahApps.Metro.Shared\Behaviours\WindowsSettingBehaviour.cs:line 59
   at MahApps.Metro.Behaviours.WindowsSettingBehaviour.AssociatedObject_Closed(Object sender, EventArgs e) in C:\projects\mahapps-metro\src\MahApps.Metro\MahApps.Metro.Shared\Behaviours\WindowsSettingBehaviour.cs:line 30
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Windows.Window.OnClosed(EventArgs e)
   at System.Windows.Window.WmDestroy()
   at System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions