Commit 49a03bda authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter
Browse files

fix warnings on invalid code

2007-08-29  Juerg Billeter  <j@bitron.ch>

	* gobject/valadbusbindingprovider.vala: fix warnings on invalid code

svn path=/trunk/; revision=524
parent 211dc197
2007-08-29 Jürg Billeter <j@bitron.ch>
* gobject/valadbusbindingprovider.vala: fix warnings on invalid code
2007-08-28 Jürg Billeter <j@bitron.ch>
* vala/valamethod.vala: ensure that the error domains match when
......
......@@ -52,7 +52,7 @@ public class Vala.DBusBindingProvider : BindingProvider {
}
public Symbol get_binding (MemberAccess! ma) {
if (connection_type != null && ma.inner != null && ma.inner.static_type.data_type == connection_type) {
if (connection_type != null && ma.inner != null && ma.inner.static_type != null && ma.inner.static_type.data_type == connection_type) {
var type_args = ma.get_type_arguments ();
if (type_args.size != 1) {
return null;
......@@ -74,7 +74,7 @@ public class Vala.DBusBindingProvider : BindingProvider {
m.add_parameter (new FormalParameter ("path", string_type_ref));
symbols.add (m);
return m;
} else if (ma.inner != null && is_dbus_interface (ma.inner.static_type.data_type)) {
} else if (ma.inner != null && ma.inner.static_type != null && is_dbus_interface (ma.inner.static_type.data_type)) {
if (ma.parent_node is InvocationExpression) {
var expr = (InvocationExpression) ma.parent_node;
var ret_type = new TypeReference ();
......
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