# \#gradle-3568

**URL:** https://discuss.gradle.org/tag/gradle-3568/230.md

[Latest](https://discuss.gradle.org/latest.md) · [Categories](https://discuss.gradle.org/categories.md) · [Tags](https://discuss.gradle.org/tags.md)

---

## [Gradle 3.1 createDistribution task fails with a NPE](https://discuss.gradle.org/t/gradle-3-1-createdistribution-task-fails-with-a-npe/19847)

<div class="topic-metadata">

**Author:** [@tjoneslo](https://discuss.gradle.org/u/tjoneslo)\
**Replies:** 2\
**Last updated:** [November 2, 2016, 1:26pm UTC](https://discuss.gradle.org/t/gradle-3-1-createdistribution-task-fails-with-a-npe/19847 "2016-11-02T13:26:40Z")

</div>

I am in the process of switching our build system from gradle 2.14.1 (where this isn't present) to 3.1 (where the build fails). I've tried this with and without parallel mode and with and without the daemon. Same failure…

---

## [AbstractCopyTask.rename(Closure) does not handle null returns as documented](https://discuss.gradle.org/t/abstractcopytask-rename-closure-does-not-handle-null-returns-as-documented/19758)

<div class="topic-metadata">

**Author:** [@blaine\_simpson](https://discuss.gradle.org/u/blaine_simpson)\
**Replies:** 1\
**Last updated:** [September 28, 2016, 2:08pm UTC](https://discuss.gradle.org/t/abstractcopytask-rename-closure-does-not-handle-null-returns-as-documented/19758 "2016-09-28T14:08:05Z")

</div>

See what the 3.1 API docs says about the closure returning nulls: https://docs.gradle.org/current/javadoc/org/gradle/api/tasks/AbstractCopyTask.html#rename(groovy.lang.Closure) : The closure may return null, in which ca…
