diff --git a/build.gradle b/build.gradle index 69497a7c..c1da0430 100644 --- a/build.gradle +++ b/build.gradle @@ -16,7 +16,7 @@ idea { def gitInfo = GitVersioner.versionForDir(project.rootDir) RegamedllVersionInfo versionInfo -if (gitInfo.tag && gitInfo.tag[0] == 'v') { +if (gitInfo && gitInfo.tag && gitInfo.tag[0] == 'v') { def m = gitInfo.tag =~ /^v(\d+)\.(\d+)(\.(\d+))?$/ if (!m.find()) { throw new RuntimeException("Invalid git version tag name ${gitInfo.tag}")