You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by er...@apache.org on 2014/09/16 16:01:54 UTC
[02/11] git commit: [flex-falcon] [refs/heads/develop] - Add null
check
Add null check
Prevents exception from being thrown when running full SDK through FalconJX. Check with compiler/SDK guru's about root cause for exception.
Signed-off-by: Erik de Bruin <er...@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/08be9466
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/08be9466
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/08be9466
Branch: refs/heads/develop
Commit: 08be9466b34636ece5a9395f86c66930bfa90d5a
Parents: 302b6bb
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Tue Sep 16 13:33:47 2014 +0200
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Tue Sep 16 13:33:47 2014 +0200
----------------------------------------------------------------------
.../compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/08be9466/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
index 73b7d4b..10456c7 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/flexjs/JSFlexJSEmitter.java
@@ -825,6 +825,10 @@ public class JSFlexJSEmitter extends JSGoogEmitter implements IJSFlexJSEmitter
IClassNode cnode = (IClassNode) node
.getAncestorOfType(IClassNode.class);
+ // ToDo (erikdebruin): add VF2JS conditional -> only use check during full SDK compilation
+ if (cnode == null)
+ return;
+
write(cnode.getQualifiedName());
write(ASEmitterTokens.MEMBER_ACCESS);
write(JSGoogEmitterTokens.GOOG_BASE);