[vala/parallel: 4/17] MemberAccess: fix crash in .to_string()
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/parallel: 4/17] MemberAccess: fix crash in .to_string()
- Date: Sun, 29 Aug 2010 22:21:21 +0000 (UTC)
commit 333c7b57dfe98c0399b12afc9bdb79ecd7fe23bd
Author: Ryan Lortie <desrt desrt ca>
Date: Tue Aug 24 19:25:43 2010 +0200
MemberAccess: fix crash in .to_string()
MemberAccess.to_string() would crash if it was run before the symbol
resolver. Fix that.
vala/valamemberaccess.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valamemberaccess.vala b/vala/valamemberaccess.vala
index 443e67b..6548fc5 100644
--- a/vala/valamemberaccess.vala
+++ b/vala/valamemberaccess.vala
@@ -132,7 +132,7 @@ public class Vala.MemberAccess : Expression {
}
public override string to_string () {
- if (symbol_reference.is_instance_member ()) {
+ if (symbol_reference == null || symbol_reference.is_instance_member ()) {
if (inner == null) {
return member_name;
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]