[GRADLE-645] Handle a selector closure which returns a null value Created: 18/Sep/09  Updated: 04/Jan/13  Resolved: 24/Nov/10

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 0.9-rc-1

Type: Improvement
Reporter: Adam Murdoch Assignee: Hans Dockter
Resolution: Fixed Votes: 0


 Description   

For example, the following throws a NPE because the closure returns null:

configurations.default.files

{ println it }

We should use Groovy truth on the return value, ie null -> false, or at least give a useful error message


Generated at Wed Jun 30 11:35:14 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.