[GRADLE-3444] NPE when configuring FileTree's builtBy by map Created: 29/Apr/16  Updated: 04/May/16  Resolved: 03/May/16

Status: Resolved
Project: Gradle
Affects Version/s: 2.8, 2.9, 2.10, 2.11, 2.12, 2.13
Fix Version/s: 2.14-rc-1

Type: Bug
Reporter: Paul Merlin Assignee: Paul Merlin
Resolution: Fixed Votes: 0


 Description   

fileTree(dir: 'classes', builtBy: ['compile']) is valid but throw a NullPointerException:

java.lang.NullPointerException
	at org.gradle.api.internal.file.collections.DefaultConfigurableFileTree.setBuiltBy(DefaultConfigurableFileTree.java:175)
	at org.gradle.util.ConfigureUtil.configureByMap(ConfigureUtil.java:45)
	at org.gradle.api.internal.file.collections.DefaultConfigurableFileTree.<init>(DefaultConfigurableFileTree.java:58)

See https://github.com/gradle/gradle/pull/626



 Comments   
Comment by Juan Martín Sotuyo Dodero [ 29/Apr/16 ]

This bug is known to be present in at least 2.8 throught 2.13. Probably has been present since further back in time.

The issue should be marked as closed though, since the PR has been merged into master, and will make it into a follow up release.

Generated at Wed Jun 30 12:48:59 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.