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 2013/11/13 19:01:30 UTC
[2/2] git commit: [flex-asjs] [refs/heads/develop] - Added null check
Added null check
Signed-off-by: Erik de Bruin <er...@ixsoftware.nl>
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/d1eee3af
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/d1eee3af
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/d1eee3af
Branch: refs/heads/develop
Commit: d1eee3afd8b1b7ef9c1b722c398ed2588d5a261d
Parents: 597bc3d
Author: Erik de Bruin <er...@ixsoftware.nl>
Authored: Wed Nov 13 19:00:46 2013 +0100
Committer: Erik de Bruin <er...@ixsoftware.nl>
Committed: Wed Nov 13 19:00:46 2013 +0100
----------------------------------------------------------------------
frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/d1eee3af/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js b/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
index b605e93..4915061 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/utils/Language.js
@@ -74,7 +74,8 @@ org.apache.flex.utils.Language.is = function(leftOperand, rightOperand) {
return true;
}
- if (interfaces[i].prototype.FLEXJS_CLASS_INFO &&
+ if (interfaces[i] &&
+ interfaces[i].prototype.FLEXJS_CLASS_INFO &&
interfaces[i].prototype.FLEXJS_CLASS_INFO.interfaces) {
return checkInterfaces(new interfaces[i]());
}