You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by jo...@apache.org on 2018/09/10 17:49:11 UTC
[royale-compiler] branch develop updated: GoogDepsWriter: another
NullPointerException fix
This is an automated email from the ASF dual-hosted git repository.
joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
The following commit(s) were added to refs/heads/develop by this push:
new e70161e GoogDepsWriter: another NullPointerException fix
e70161e is described below
commit e70161eccf4e576287805accf87b182b12fcd8e5
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Mon Sep 10 10:49:03 2018 -0700
GoogDepsWriter: another NullPointerException fix
---
.../org/apache/royale/compiler/internal/graph/GoogDepsWriter.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/graph/GoogDepsWriter.java b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/graph/GoogDepsWriter.java
index 950e46b..2480a34 100644
--- a/compiler-jx/src/main/java/org/apache/royale/compiler/internal/graph/GoogDepsWriter.java
+++ b/compiler-jx/src/main/java/org/apache/royale/compiler/internal/graph/GoogDepsWriter.java
@@ -274,7 +274,13 @@ public class GoogDepsWriter {
if (isGoogClass(name)) continue;
GoogDep dep = depMap.get(name);
if (dep == null)
+ {
System.out.println("No GoogDep for " + name);
+ //added this to prevent a NullPointerException when the
+ //GoogDep is null. -JT
+ problems.add(new FileNotFoundProblem(name));
+ continue;
+ }
depsInOrder.add(dep);
}
return depsInOrder;