From commits-return-121617-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Sat Nov 10 14:50:39 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 E932A180668 for ; Sat, 10 Nov 2018 14:50:38 +0100 (CET) Received: (qmail 41042 invoked by uid 500); 10 Nov 2018 13:50:38 -0000 Mailing-List: contact commits-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list commits@ignite.apache.org Received: (qmail 41033 invoked by uid 99); 10 Nov 2018 13:50:38 -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; Sat, 10 Nov 2018 13:50:38 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 7E87786C02; Sat, 10 Nov 2018 13:50:37 +0000 (UTC) Date: Sat, 10 Nov 2018 13:50:37 +0000 To: "commits@ignite.apache.org" Subject: [ignite-teamcity-bot] branch master updated: NPE fix during build ctx creation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <154185783747.11195.1939197466243045399@gitbox.apache.org> From: dpavlov@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: ignite-teamcity-bot X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: efdd0c7e0dbda0ae05edbf42775330133b1f7180 X-Git-Newrev: a44cc309cf5ffee78aae7669c529e304da5f7e82 X-Git-Rev: a44cc309cf5ffee78aae7669c529e304da5f7e82 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. dpavlov pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/ignite-teamcity-bot.git The following commit(s) were added to refs/heads/master by this push: new a44cc30 NPE fix during build ctx creation a44cc30 is described below commit a44cc309cf5ffee78aae7669c529e304da5f7e82 Author: Dmitriy Pavlov AuthorDate: Sat Nov 10 16:50:34 2018 +0300 NPE fix during build ctx creation --- .../org/apache/ignite/ci/tcbot/chain/BuildChainProcessor.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/tcbot/chain/BuildChainProcessor.java b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/tcbot/chain/BuildChainProcessor.java index 1e8adb6..325fffc 100644 --- a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/tcbot/chain/BuildChainProcessor.java +++ b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/tcbot/chain/BuildChainProcessor.java @@ -157,10 +157,14 @@ public class BuildChainProcessor { @SuppressWarnings("WeakerAccess") @AutoProfiling - protected void createCxt(ITeamcityIgnited teamcityIgnited, Map buildsCtxMap, - FatBuildCompacted buildCompacted) { + protected void createCxt(ITeamcityIgnited teamcityIgnited, + Map buildsCtxMap, + FatBuildCompacted buildCompacted) { final BuildRef ref = buildCompacted.toBuildRef(compactor); + if (buildCompacted.isFakeStub() || ref.isFakeStub()) + return; + final MultBuildRunCtx ctx = buildsCtxMap.computeIfAbsent(ref.buildTypeId, k -> new MultBuildRunCtx(ref, compactor));