vala r1565 - in trunk: . gobject
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1565 - in trunk: . gobject
- Date: Tue, 10 Jun 2008 10:57:04 +0000 (UTC)
Author: juergbi
Date: Tue Jun 10 10:57:04 2008
New Revision: 1565
URL: http://svn.gnome.org/viewvc/vala?rev=1565&view=rev
Log:
2008-06-10 JÃrg Billeter <j bitron ch>
* gobject/valaccodedynamicmethodbinding.vala:
Fix crash when using unsupported D-Bus arrays
Modified:
trunk/ChangeLog
trunk/gobject/valaccodedynamicmethodbinding.vala
Modified: trunk/gobject/valaccodedynamicmethodbinding.vala
==============================================================================
--- trunk/gobject/valaccodedynamicmethodbinding.vala (original)
+++ trunk/gobject/valaccodedynamicmethodbinding.vala Tue Jun 10 10:57:04 2008
@@ -367,6 +367,9 @@
}
CCodeExpression get_dbus_array_type (ArrayType array_type) {
+ if (array_type.element_type.data_type == null) {
+ Report.error (array_type.source_reference, "internal error: unsupported array type for use with D-Bus");
+ }
var carray_type = new CCodeFunctionCall (new CCodeIdentifier ("dbus_g_type_get_collection"));
carray_type.add_argument (new CCodeConstant ("\"GArray\""));
carray_type.add_argument (new CCodeIdentifier (array_type.element_type.data_type.get_type_id ()));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]