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:56 UTC
[04/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/84d92adf
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/84d92adf
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/84d92adf
Branch: refs/heads/develop
Commit: 84d92adff0d4c90e29ebec6204477f0703f106f7
Parents: a44c130
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Tue Sep 16 13:43:56 2014 +0200
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Tue Sep 16 13:43:56 2014 +0200
----------------------------------------------------------------------
.../compiler/internal/codegen/js/goog/JSGoogDocEmitter.java | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/84d92adf/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogDocEmitter.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogDocEmitter.java b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogDocEmitter.java
index a63992f..b2f8761 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogDocEmitter.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/codegen/js/goog/JSGoogDocEmitter.java
@@ -501,6 +501,11 @@ public class JSGoogDocEmitter extends JSDocEmitter implements IJSGoogDocEmitter
IClassNode cnode = (IClassNode) node
.getAncestorOfType(IClassNode.class);
+
+ // ToDo (erikdebruin): add VF2JS conditional -> only use check during full SDK compilation
+ if (cnode == null)
+ return null;
+
return cnode.getDefinition();
}
}