2008-01-09 Juerg Billeter <j@bitron.ch>
* vala/valadatatype.vala: fix crash when data_type property is null
svn path=/trunk/; revision=817
2008-01-09 Jürg Billeter <j@bitron.ch>
+ * vala/valadatatype.vala: fix crash when data_type property is null
+
+2008-01-09 Jürg Billeter <j@bitron.ch>
+
* vapi/glib-2.0.vapi: minor fixes
2008-01-09 Jürg Billeter <j@bitron.ch>
if (target_type is PointerType || (target_type.data_type != null && target_type.data_type.get_attribute ("PointerType") != null)) {
/* any reference or array type or pointer type can be cast to a generic pointer */
if (type_parameter != null ||
- data_type.is_reference_type () ||
- data_type is Array ||
- data_type is Callback ||
- data_type.get_attribute ("PointerType") != null) {
+ (data_type != null && (
+ data_type.is_reference_type () ||
+ data_type is Array ||
+ data_type is Callback ||
+ data_type.get_attribute ("PointerType") != null))) {
return true;
}