bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject git commit: BIGTOP-1425. gradle build can fail with NPE in an obscure way
Date Thu, 04 Sep 2014 02:14:36 GMT
Repository: bigtop
Updated Branches:
  refs/heads/master 5cd44c4ba -> e20b54ae5


BIGTOP-1425. gradle build can fail with NPE in an obscure way


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/e20b54ae
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/e20b54ae
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/e20b54ae

Branch: refs/heads/master
Commit: e20b54ae554ad8c337832e2d4bf99ebab528cc1d
Parents: 5cd44c4
Author: Konstantin Boudnik <cos@wandisco.com>
Authored: Wed Sep 3 18:07:31 2014 -0700
Committer: Konstantin Boudnik <cos@wandisco.com>
Committed: Wed Sep 3 18:07:38 2014 -0700

----------------------------------------------------------------------
 buildSrc/src/main/groovy/org/apache/bigtop/BuildUtils.groovy | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/e20b54ae/buildSrc/src/main/groovy/org/apache/bigtop/BuildUtils.groovy
----------------------------------------------------------------------
diff --git a/buildSrc/src/main/groovy/org/apache/bigtop/BuildUtils.groovy b/buildSrc/src/main/groovy/org/apache/bigtop/BuildUtils.groovy
index fa349ba..a17e0d7 100644
--- a/buildSrc/src/main/groovy/org/apache/bigtop/BuildUtils.groovy
+++ b/buildSrc/src/main/groovy/org/apache/bigtop/BuildUtils.groovy
@@ -43,6 +43,7 @@ class BuildUtils {
         eval = eval.replaceAll(/\$\(/, "").replaceAll(/\)/,"")
         (1..m.groupCount()).each { i ->
           def token = m[counter++][i]
+          assert map.get(token) != null
           eval = eval.replaceAll(token, map.get(token))
         }
       }


Mime
View raw message