[anjuta] language-support-vala: bgo #722197 - use an empty list in case of the Vala block context is null
- From: Abderrahim Kitouni <akitouni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] language-support-vala: bgo #722197 - use an empty list in case of the Vala block context is null
- Date: Sat, 19 Jul 2014 14:42:34 +0000 (UTC)
commit cae63fd93ba8424665918dd66d0f38cac249ca23
Author: Abderrahim Kitouni <a kitouni gmail com>
Date: Tue Jul 8 18:22:46 2014 +0100
language-support-vala: bgo #722197 - use an empty list in case of the Vala block context is null
plugins/language-support-vala/plugin.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plugins/language-support-vala/plugin.vala b/plugins/language-support-vala/plugin.vala
index a9a2c58..97aae74 100644
--- a/plugins/language-support-vala/plugin.vala
+++ b/plugins/language-support-vala/plugin.vala
@@ -527,7 +527,9 @@ public class ValaPlugin : Plugin, IAnjuta.Preferences {
internal List<Vala.Symbol> lookup_symbol (Vala.Expression? inner, string name, bool prefix_match,
Vala.Block block) {
- List<Vala.Symbol> matching_symbols = null;
+ var matching_symbols = new List<Vala.Symbol> ();
+
+ if (block == null) return matching_symbols;
lock (context) {
if (inner == null) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]