flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject git commit: [flex-falcon] [refs/heads/develop] - FLEX-35190 handle 'bad' databinding expressions
Date Tue, 06 Dec 2016 18:43:38 GMT
Repository: flex-falcon
Updated Branches:
  refs/heads/develop 0e0e88bf0 -> 49835eca1


FLEX-35190 handle 'bad' databinding expressions


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

Branch: refs/heads/develop
Commit: 49835eca1a2d82125b504cd2608818059dab4e28
Parents: 0e0e88b
Author: Alex Harui <aharui@apache.org>
Authored: Tue Dec 6 10:43:32 2016 -0800
Committer: Alex Harui <aharui@apache.org>
Committed: Tue Dec 6 10:43:32 2016 -0800

----------------------------------------------------------------------
 .../flex/compiler/internal/codegen/databinding/BindingInfo.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/49835eca/compiler/src/main/java/org/apache/flex/compiler/internal/codegen/databinding/BindingInfo.java
----------------------------------------------------------------------
diff --git a/compiler/src/main/java/org/apache/flex/compiler/internal/codegen/databinding/BindingInfo.java
b/compiler/src/main/java/org/apache/flex/compiler/internal/codegen/databinding/BindingInfo.java
index 04ef899..330b159 100644
--- a/compiler/src/main/java/org/apache/flex/compiler/internal/codegen/databinding/BindingInfo.java
+++ b/compiler/src/main/java/org/apache/flex/compiler/internal/codegen/databinding/BindingInfo.java
@@ -485,7 +485,7 @@ public class BindingInfo implements Comparable<BindingInfo>
         {
         	MemberAccessExpressionNode mae = (MemberAccessExpressionNode)expressionNodeForGetter;
             IDefinition def = mae.resolve(project);
-            if (def.isPublic() && 
+            if (def != null && def.isPublic() && 
             		(def instanceof IAccessorDefinition ||
             		 def instanceof IConstantDefinition ||
             		 def instanceof IVariableDefinition))


Mime
View raw message