banshee r4482 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Gui



Author: gburt
Date: Mon Sep  8 01:22:04 2008
New Revision: 4482
URL: http://svn.gnome.org/viewvc/banshee?rev=4482&view=rev

Log:
2008-09-07  Gabriel Burt  <gabriel burt gmail com>

	* src/Core/Banshee.ThickClient/Banshee.Gui/PersistentWindowController.cs:
	Fix NRE (BGO #550918).



Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/PersistentWindowController.cs

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/PersistentWindowController.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/PersistentWindowController.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/PersistentWindowController.cs	Mon Sep  8 01:22:04 2008
@@ -161,6 +161,9 @@
 
         private void InnerSave ()
         {
+            if (window == null || window.GdkWindow == null)
+                return;
+
             int x, y, width, height;
 
             if ((window.GdkWindow.State & Gdk.WindowState.Maximized) != 0) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]