You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by co...@apache.org on 2014/09/04 04:14:36 UTC

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

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 <co...@wandisco.com>
Authored: Wed Sep 3 18:07:31 2014 -0700
Committer: Konstantin Boudnik <co...@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))
         }
       }