diff options
author | Jens Geyer <jensg@apache.org> | 2021-02-24 20:39:24 +0100 |
---|---|---|
committer | Jens Geyer <jensg@apache.org> | 2021-02-24 20:40:45 +0100 |
commit | 13f9e9e86471b45189eb40ca00fdb5a2a7fa0f26 (patch) | |
tree | 01e94340d7a3a9e1a8ab9eb84bda67ede3f348a3 | |
parent | e89b3e11eed32ac7aa34d566ee1a8f45710a270b (diff) | |
download | thrift-13f9e9e86471b45189eb40ca00fdb5a2a7fa0f26.tar.gz |
fix nullptr exception in publishing.gradle
-rw-r--r-- | lib/java/gradle/publishing.gradle | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/java/gradle/publishing.gradle b/lib/java/gradle/publishing.gradle index 029bff93d..481fcbc69 100644 --- a/lib/java/gradle/publishing.gradle +++ b/lib/java/gradle/publishing.gradle @@ -86,8 +86,10 @@ def configurePom(pom) { pom.whenConfigured { // Fixup the scope for servlet-api to be 'provided' instead of 'compile' dependencies.find { dep -> dep.groupId == 'javax.servlet' && dep.artifactId == 'servlet-api' }.with { - // it.optional = true - it.scope = 'provided' + if(it != null) { + // it.optional = true + it.scope = 'provided' + } } } } |