ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dpav...@apache.org
Subject [ignite-teamcity-bot] branch master updated: NPE fix during build ctx creation
Date Sat, 10 Nov 2018 13:50:37 GMT
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 <dpavlov@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));
 


Mime
View raw message