Fixes BNC#426876.
* generator/InterfaceGen.cs: throw ArgumentNullException in the Adapter's constructor that receives an implementor. svn path=/trunk/gtk-sharp/; revision=115571
This commit is contained in:
parent
b20d37c79c
commit
d677bb90f0
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-10-12 Andrés G. Aragoneses <aaragoneses@novell.com>
|
||||
|
||||
Fixes BNC#426876.
|
||||
* generator/InterfaceGen.cs: throw ArgumentNullException in
|
||||
the Adapter's constructor that receives an implementor.
|
||||
|
||||
2008-10-09 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* cairo/*.cs: flatten source hierarchy to simplify win32 build.
|
||||
|
|
|
@ -170,6 +170,8 @@ namespace GtkSharp.Generation {
|
|||
sw.WriteLine ();
|
||||
sw.WriteLine ("\t\tpublic {0}Adapter ({0}Implementor implementor)", Name);
|
||||
sw.WriteLine ("\t\t{");
|
||||
sw.WriteLine ("\t\t\tif (implementor == null)");
|
||||
sw.WriteLine ("\t\t\t\tthrow new ArgumentNullException (\"implementor\");");
|
||||
sw.WriteLine ("\t\t\tthis.implementor = implementor;");
|
||||
sw.WriteLine ("\t\t}");
|
||||
sw.WriteLine ();
|
||||
|
|
Loading…
Reference in a new issue