Commit e47a9060 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

fix crash when data_type property is null

2008-01-09  Juerg Billeter  <j@bitron.ch>

	* vala/valadatatype.vala: fix crash when data_type property is null

svn path=/trunk/; revision=817
parent 1455f3ce
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
......
......@@ -344,10 +344,11 @@ public class Vala.DataType : CodeNode {
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment