[vala] GAsync: Fix critical warning
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] GAsync: Fix critical warning
- Date: Tue, 7 Jul 2009 12:40:08 +0000 (UTC)
commit 3fa619e7c02f55ae776f82ba5e2b140d46f17692
Author: Jürg Billeter <j bitron ch>
Date: Tue Jul 7 13:35:53 2009 +0100
GAsync: Fix critical warning
codegen/valagerrormodule.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valagerrormodule.vala b/codegen/valagerrormodule.vala
index b8ba1a1..90e9552 100644
--- a/codegen/valagerrormodule.vala
+++ b/codegen/valagerrormodule.vala
@@ -151,7 +151,7 @@ internal class Vala.GErrorModule : CCodeDelegateModule {
if (current_method is CreationMethod) {
cerror_block.add_statement (new CCodeReturnStatement (new CCodeConstant ("NULL")));
- } else if (current_method.coroutine) {
+ } else if (current_method != null && current_method.coroutine) {
cerror_block.add_statement (new CCodeReturnStatement (new CCodeConstant ("FALSE")));
} else if (current_return_type is VoidType) {
cerror_block.add_statement (new CCodeReturnStatement ());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]