impls can be null
Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/2af5714e Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/2af5714e Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/2af5714e Branch: refs/heads/feature/amf Commit: 2af5714e406e125f6276759a28ea86e432462825 Parents: a9e09f4 Author: Alex Harui <[email protected]> Authored: Thu Aug 31 21:11:05 2017 -0700 Committer: Alex Harui <[email protected]> Committed: Thu Aug 31 21:11:05 2017 -0700 ---------------------------------------------------------------------- .../apache/flex/compiler/internal/graph/GoogDepsWriter.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/2af5714e/compiler-jx/src/main/java/org/apache/flex/compiler/internal/graph/GoogDepsWriter.java ---------------------------------------------------------------------- diff --git a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/graph/GoogDepsWriter.java b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/graph/GoogDepsWriter.java index 9ada634..c306e13 100644 --- a/compiler-jx/src/main/java/org/apache/flex/compiler/internal/graph/GoogDepsWriter.java +++ b/compiler-jx/src/main/java/org/apache/flex/compiler/internal/graph/GoogDepsWriter.java @@ -155,10 +155,13 @@ public class GoogDepsWriter { { if (gd.className.equals(mainName)) { - for (String d : gd.fileInfo.impls) + if (gd.fileInfo.impls != null) { - if (!restOfDeps.contains(d)) - restOfDeps.add(d); + for (String d : gd.fileInfo.impls) + { + if (!restOfDeps.contains(d)) + restOfDeps.add(d); + } } continue; }
