2

Closed

NullReferenceException when viewing MainWindow.xaml designer in VS2010

description

I'm getting a NullReferenceException when viewing MainWindow.xaml designer in VS2010. See attached screenshot. Any ideas?

file attachments

Closed May 14, 2012 at 5:13 PM by peekb
fix checked in, binaries not updated

comments

melody4mind wrote Nov 11, 2011 at 1:42 AM

FYI I updated line 52 from:
if (MainWindow.Instance.NuiRuntime == null)
to
if (MainWindow.Instance == null || MainWindow.Instance.NuiRuntime == null)

After doing that the designer seems to work. Is it expected that MainWindow.Instance could be null?