2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>

* gnome/About.custom: fixes exception when passing null argument


svn path=/trunk/gtk-sharp/; revision=44631
This commit is contained in:
Jordi Mas i Hernandez 2005-05-17 14:30:19 +00:00
parent bd5af2ca78
commit bf2e4b39fc
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2005-05-17 Jordi Mas i Hernandez <jordi@ximian.com>
* gnome/About.custom: fixes exception when passing null argument
2005-05-16 Mike Kestner <mkestner@novell.com>
* makefile.win32 : remove 1.0 csc, default to 1.1.

View File

@ -27,7 +27,7 @@
IntPtr[] NullTerm (string[] src)
{
if (src.Length == 0)
if (src == null || src.Length == 0)
return null;
IntPtr[] result = new IntPtr [src.Length + 1];
for (int i = 0; i < src.Length; i++)