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 ffd46c2  GoogDepsWriter: fixed null exception when processing source 
maps
ffd46c2 is described below

commit ffd46c271187e2e1b04522ba32ace8f8fa3314f9
Author: Josh Tynjala <[email protected]>
AuthorDate: Fri Oct 30 09:56:00 2020 -0700

    GoogDepsWriter: fixed null exception when processing source maps
---
 .../org/apache/royale/compiler/internal/graph/GoogDepsWriter.java    | 5 +++++
 1 file changed, 5 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 8bcf02a..ea2b6c1 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
@@ -191,6 +191,11 @@ public class GoogDepsWriter {
                        return;
                }
                String sourceRoot = sourceMapConsumer.getSourceRoot();
+               if (sourceRoot == null)
+               {
+                       // sometimes, the source root is null, and that's 
expected
+                       return;
+               }
                int index = sourceRoot.indexOf("/frameworks/js/projects/");
                if(index == -1)
                {

Reply via email to