[anjuta] language-support-vala: fix a crash with the directory project backend
- From: Abderrahim Kitouni <akitouni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] language-support-vala: fix a crash with the directory project backend
- Date: Sat, 3 Dec 2011 10:13:51 +0000 (UTC)
commit 6661f6d414e7cc6ba08c1140f9b2fbc919f36f7f
Author: Abderrahim Kitouni <a kitouni gmail com>
Date: Sat Dec 3 10:49:46 2011 +0100
language-support-vala: fix a crash with the directory project backend
plugins/language-support-vala/plugin.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/language-support-vala/plugin.vala b/plugins/language-support-vala/plugin.vala
index f1cd9b0..b0ebab9 100644
--- a/plugins/language-support-vala/plugin.vala
+++ b/plugins/language-support-vala/plugin.vala
@@ -132,6 +132,8 @@ public class ValaPlugin : Plugin {
return;
var current_target = current_src.parent_type (Anjuta.ProjectNodeType.TARGET);
+ if (current_target == null)
+ return;
current_target.foreach (TraverseType.PRE_ORDER, (node) => {
if (!(Anjuta.ProjectNodeType.SOURCE in node.get_node_type ()))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]