fix branch check in gradle build
@@ -19,8 +19,8 @@ def versionMinor = 6
def versionPatch = 7
def versionModifier = ""
def jarVersion = "2.6.7"
-def branch = System.getenv("TRAVIS_BRANCH");
-def tag = System.getenv("TRAVIS_TAG");
+def branch = System.getenv("TRAVIS_BRANCH") != null ? System.getenv("TRAVIS_BRANCH") : "";
+def tag = System.getenv("TRAVIS_TAG") != null ? System.getenv("TRAVIS_TAG") : "";
def useSigning = "master".equals(branch) || (!"".equals(tag) && tag.equals(branch)) // tag will be the branch on a tag event for travis
def getVersionName = { ->
