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:59 UTC
[07/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/55e000f6
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/55e000f6
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/55e000f6
Branch: refs/heads/develop
Commit: 55e000f6eddeb01faa2100a3aefb6618a55856b8
Parents: 1a7c183
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Tue Sep 16 14:01:18 2014 +0200
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Tue Sep 16 14:01:18 2014 +0200
----------------------------------------------------------------------
.../apache/flex/compiler/internal/visitor/as/ASNodeSwitch.java | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/55e000f6/compiler.jx/src/org/apache/flex/compiler/internal/visitor/as/ASNodeSwitch.java
----------------------------------------------------------------------
diff --git a/compiler.jx/src/org/apache/flex/compiler/internal/visitor/as/ASNodeSwitch.java b/compiler.jx/src/org/apache/flex/compiler/internal/visitor/as/ASNodeSwitch.java
index 610a644..04b98ef 100644
--- a/compiler.jx/src/org/apache/flex/compiler/internal/visitor/as/ASNodeSwitch.java
+++ b/compiler.jx/src/org/apache/flex/compiler/internal/visitor/as/ASNodeSwitch.java
@@ -101,6 +101,10 @@ public class ASNodeSwitch implements IASNodeStrategy
@Override
public void handle(IASNode node)
{
+ // ToDo (erikdebruin): add VF2JS conditional -> only use check during full SDK compilation
+ if (node == null)
+ return;
+
// TODO (mschmalle) Still working on the switch, its complication in the expressions
switch (node.getNodeID())
{