From commits-return-5626-archive-asf-public=cust-asf.ponee.io@royale.apache.org Mon Sep 10 19:49:13 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 25C41180656 for ; Mon, 10 Sep 2018 19:49:12 +0200 (CEST) Received: (qmail 19124 invoked by uid 500); 10 Sep 2018 17:49:12 -0000 Mailing-List: contact commits-help@royale.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@royale.apache.org Delivered-To: mailing list commits@royale.apache.org Received: (qmail 19115 invoked by uid 99); 10 Sep 2018 17:49:12 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2018 17:49:12 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id BE846850F8; Mon, 10 Sep 2018 17:49:11 +0000 (UTC) Date: Mon, 10 Sep 2018 17:49:11 +0000 To: "commits@royale.apache.org" Subject: [royale-compiler] branch develop updated: GoogDepsWriter: another NullPointerException fix MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <153660175173.2006.7663547619027191188@gitbox.apache.org> From: joshtynjala@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: royale-compiler X-Git-Refname: refs/heads/develop X-Git-Reftype: branch X-Git-Oldrev: 0b28687e40304eaba3185331a170225c16307b2e X-Git-Newrev: e70161eccf4e576287805accf87b182b12fcd8e5 X-Git-Rev: e70161eccf4e576287805accf87b182b12fcd8e5 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated 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 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;