[GRADLE-3557] Dependency resolution fails with NPE when repository returns 304 Created: 14/Sep/16 Updated: 14/Sep/16 Resolved: 14/Sep/16 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 3.0 |
Fix Version/s: | 3.2-rc-1 |
Type: | Bug | ||
Reporter: | Stefan Wolf | Assignee: | Stefan Wolf |
Resolution: | Fixed | Votes: | 0 |
Description |
When a repository returns no content in the response (e.g. for status code 304), then dependency resolution fails with a NPE: * What went wrong: Could not resolve all dependencies for configuration ':p0:testCompile'. > Could not download junit.jar (junit:junit:4.12) > Failed to download resource 'https://jcenter.bintray.com/junit/junit/4.12/junit-4.12.jar'. > java.lang.NullPointerException (no error message) There should be a better error message for this, even if it should never happen except if there is some problem on the repository side. |
Comments |
Comment by Stefan Wolf [ 14/Sep/16 ] |
We now report that we got 304. |