1

Closed

NPE in WPFUIVisualizerService

description

Hi!
 
I am creating some WPF popups using Cinch. However, I am doing this for a unmanaged application.
 
As a result of this, Application.Current is null. This results in a NullPointerException in WPFUIVisualizerService.cs, line 140, if I call ShowDialog(). As a quick fix, I changed the two lines locally to:
 
if (setOwner && Application.Current != null)
win.Owner = Application.Current.MainWindow;
 
Daniel Rose

file attachments

Closed Nov 27, 2011 at 5:14 PM by sachabarber
Done

comments

sachabarber wrote May 2, 2010 at 6:55 AM

Ok cool I will look at including this

sachabarber wrote May 4, 2010 at 8:26 AM

Done

wrote Nov 27, 2011 at 5:14 PM

wrote Feb 21, 2013 at 11:07 PM

wrote May 16, 2013 at 10:46 AM