GNOME Bugzilla – Bug 722197
use an empty list in case of the Vala block context is null
Last modified: 2014-07-23 12:01:02 UTC
Created attachment 266277 [details] [review] use an empty list in case of the Vala block context is null it sometimes happens that the current context is null. What makes the "lookup_symbol" function does not work. please find as attachment, which contains the modification : an empty list in the case of block == null ;)
Review of attachment 266277 [details] [review]: The idea is OK, but I'd rather put the check once inside lookup_symbol rather than duplicate it in two different places. (btw, the List<Vala.Symbol> matching_symbols = null; in lookup_symbol could be replaced by var matching_symbols = new List<Vala.Symbol> (); to make the intent more clear)
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
sorry but the error still occurs on ValaProvider. plugin.get_current_context is sometimes null when it's cast as a Vala.Block
Sorry, should be fixed in 2a58a8e5e834a3ded5edc56299a07c43e96b48c1
thanks for this update. works fine