From bf2e4b39fcee2a370b9a8a61a3dab2f53f9833cd Mon Sep 17 00:00:00 2001 From: Jordi Mas i Hernandez Date: Tue, 17 May 2005 14:30:19 +0000 Subject: [PATCH] 2005-05-17 Jordi Mas i Hernandez * gnome/About.custom: fixes exception when passing null argument svn path=/trunk/gtk-sharp/; revision=44631 --- ChangeLog | 4 ++++ gnome/About.custom | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bcdf7db9d..89e6a8ef2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-05-17 Jordi Mas i Hernandez + + * gnome/About.custom: fixes exception when passing null argument + 2005-05-16 Mike Kestner * makefile.win32 : remove 1.0 csc, default to 1.1. diff --git a/gnome/About.custom b/gnome/About.custom index 4f7453192..1d4de90d8 100644 --- a/gnome/About.custom +++ b/gnome/About.custom @@ -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++)