royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joshtynj...@apache.org
Subject [royale-compiler] branch develop updated: GoogDepsWriter: another NullPointerException fix
Date Mon, 10 Sep 2018 17:49:11 GMT
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 <joshtynjala@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;


Mime
View raw message