Fix uncaught exception Found this one while trying to compile a modified version of Fred's JQuery externs example. I know next to nothing about Falcon, so if more enlightened folks can trace this back to the root cause, that would be lovely :-)
Signed-off-by: Erik de Bruin <e...@ixsoftware.nl> Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/fe8d7046 Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/fe8d7046 Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/fe8d7046 Branch: refs/heads/develop Commit: fe8d704616c8b5b9059703ebd4c9ec31d7b63747 Parents: 099263d Author: Erik de Bruin <e...@ixsoftware.nl> Authored: Wed Jul 1 17:43:19 2015 +0200 Committer: Erik de Bruin <e...@ixsoftware.nl> Committed: Wed Jul 1 17:43:19 2015 +0200 ---------------------------------------------------------------------- .../src/org/apache/flex/compiler/internal/scopes/TypeScope.java | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/fe8d7046/compiler/src/org/apache/flex/compiler/internal/scopes/TypeScope.java ---------------------------------------------------------------------- diff --git a/compiler/src/org/apache/flex/compiler/internal/scopes/TypeScope.java b/compiler/src/org/apache/flex/compiler/internal/scopes/TypeScope.java index 4e49e9f..8723fe2 100644 --- a/compiler/src/org/apache/flex/compiler/internal/scopes/TypeScope.java +++ b/compiler/src/org/apache/flex/compiler/internal/scopes/TypeScope.java @@ -341,6 +341,10 @@ public class TypeScope extends ASScope Collection<IDefinition> sDefs = new FilteredCollection<IDefinition>(STATIC_ONLY_PREDICATE, defs); for (ITypeDefinition type : owningType.staticTypeIterable(project, false)) { + if (type == null) + { + continue; + } ASScope typeScope = (ASScope)type.getContainedScope(); typeScope.getLocalProperty(project, // Only lookup static properties in this scope - for any inherited scopes, we should lookup instance properties