flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cd...@apache.org
Subject [4/4] git commit: [flex-falcon] [refs/heads/develop] - Added a null-check to prevent NPEs in case of interfaces annotated with [Bindable]
Date Mon, 03 Nov 2014 18:41:09 GMT
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 <christofer.dutz@c-ware.de>
Authored: Mon Nov 3 19:40:49 2014 +0100
Committer: cdutz <christofer.dutz@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>();


Mime
View raw message