[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 |