You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by cd...@apache.org on 2014/11/03 19:41:09 UTC

[4/4] git commit: [flex-falcon] [refs/heads/develop] - Added a null-check to prevent NPEs in case of interfaces annotated with [Bindable]

Added a null-check to prevent NPEs in case of interfaces annotated with [Bindable]


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/151c6c93
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/151c6c93
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/151c6c93

Branch: refs/heads/develop
Commit: 151c6c93ead376710b0b5b0b887a36dba94c5c90
Parents: 92750cd
Author: cdutz <ch...@c-ware.de>
Authored: Mon Nov 3 19:40:49 2014 +0100
Committer: cdutz <ch...@c-ware.de>
Committed: Mon Nov 3 19:40:49 2014 +0100

----------------------------------------------------------------------
 .../org/apache/flex/compiler/internal/units/ASCompilationUnit.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/151c6c93/compiler/src/org/apache/flex/compiler/internal/units/ASCompilationUnit.java
----------------------------------------------------------------------
diff --git a/compiler/src/org/apache/flex/compiler/internal/units/ASCompilationUnit.java b/compiler/src/org/apache/flex/compiler/internal/units/ASCompilationUnit.java
index 5ce596a..54cd6e0 100644
--- a/compiler/src/org/apache/flex/compiler/internal/units/ASCompilationUnit.java
+++ b/compiler/src/org/apache/flex/compiler/internal/units/ASCompilationUnit.java
@@ -378,7 +378,7 @@ public class ASCompilationUnit extends CompilationUnitBase
                             }
                         }
                     }
-                    if (isBindable)
+                    if (isBindable && (classNode != null))
                     {
                         IExpressionNode baseNode = classNode.getBaseClassNode();
                         Collection<IImportNode> importNodes = new ArrayList<IImportNode>();