dotgnu-pnet-commits
[Top][All Lists]
Advanced

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

[dotgnu-pnet-commits] pnetlib ChangeLog Xsharp/TopLevelWindow.cs


From: Heiko Weiss
Subject: [dotgnu-pnet-commits] pnetlib ChangeLog Xsharp/TopLevelWindow.cs
Date: Tue, 04 Jul 2006 05:07:42 +0000

CVSROOT:        /sources/dotgnu-pnet
Module name:    pnetlib
Changes by:     Heiko Weiss <brubbel>   06/07/04 05:07:42

Modified files:
        .              : ChangeLog 
        Xsharp         : TopLevelWindow.cs 

Log message:
        fixed a null ref exception

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnetlib/ChangeLog?cvsroot=dotgnu-pnet&r1=1.2428&r2=1.2429
http://cvs.savannah.gnu.org/viewcvs/pnetlib/Xsharp/TopLevelWindow.cs?cvsroot=dotgnu-pnet&r1=1.35&r2=1.36

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/ChangeLog,v
retrieving revision 1.2428
retrieving revision 1.2429
diff -u -b -r1.2428 -r1.2429
--- ChangeLog   15 Jun 2006 16:52:59 -0000      1.2428
+++ ChangeLog   4 Jul 2006 05:07:42 -0000       1.2429
@@ -1,3 +1,7 @@
+2006-07-04  Heiko Weiss  <address@hidden>
+
+       * Xsharp/TopLevelWindow.cs: fixed a null ref exception.
+
 2006-06-15  Klaus Treichel  <address@hidden>
 
        * runtime/System/MulticastDelegate.s: Remove the commented buggy code in

Index: Xsharp/TopLevelWindow.cs
===================================================================
RCS file: /sources/dotgnu-pnet/pnetlib/Xsharp/TopLevelWindow.cs,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -b -r1.35 -r1.36
--- Xsharp/TopLevelWindow.cs    1 Jun 2006 13:03:06 -0000       1.35
+++ Xsharp/TopLevelWindow.cs    4 Jul 2006 05:07:42 -0000       1.36
@@ -981,9 +981,10 @@
 
                                // If this was the last undestroyed top-level 
window
                                // that was still mapped, then quit the 
application.
-                               if(!(Parent is CaptionWidget))
+                               if( !(Parent is CaptionWidget))
                                {
-                                       Widget child = Parent.TopChild;
+                                       Widget child = null;
+                                       if( null != Parent) child = 
Parent.TopChild;
                                        TopLevelWindow tchild;
                                        bool sawActive = false;
                                        while(child != null)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]