You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by dp...@apache.org on 2018/11/10 13:50:37 UTC

[ignite-teamcity-bot] branch master updated: NPE fix during build ctx creation

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 <dp...@apache.org>
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<String, MultBuildRunCtx> buildsCtxMap,
-        FatBuildCompacted buildCompacted) {
+    protected void createCxt(ITeamcityIgnited teamcityIgnited,
+                             Map<String, MultBuildRunCtx> 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));