From 52d51cc8631d7f898465470effce224e5ff7ffda Mon Sep 17 00:00:00 2001 From: Gonzalo Paniagua Javier Date: Mon, 17 Nov 2003 19:01:12 +0000 Subject: [PATCH] Aaargh. Forgot last mv svn path=/trunk/gtk-sharp/; revision=20126 --- gdk/Pixbuf.custom | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gdk/Pixbuf.custom b/gdk/Pixbuf.custom index d533050eb..39c5805fd 100644 --- a/gdk/Pixbuf.custom +++ b/gdk/Pixbuf.custom @@ -31,7 +31,10 @@ static public Pixbuf LoadResource (System.Reflection.Assembly assembly, string resource) { if (assembly == null) - return LoadResource (resource); + return LoadResource (System.Reflection.Assembly.GetCallingAssembly (), resource); + + if (resource == null) + throw new ArgumentNullException ("resource"); System.IO.Stream s = assembly.GetManifestResourceStream (resource); if (s == null) @@ -42,6 +45,9 @@ static public Pixbuf LoadResource (string resource) { + if (resource == null) + throw new ArgumentNullException ("resource"); + return LoadResource (System.Reflection.Assembly.GetCallingAssembly (), resource); }