[GRADLE-532] Example 4.13 might produce NPE Created: 27/Jun/09  Updated: 04/Jan/13  Resolved: 31/Aug/09

Status: Resolved
Project: Gradle
Affects Version/s: 0.7
Fix Version/s: 0.8

Type: Bug
Reporter: Jacob Grydholt Assignee: Hans Dockter
Resolution: Fixed Votes: 0


 Description   

The checksum example 4.13 in Gradle 0.7-20090627155849+0200 might easily produce a NullPointerExeption. If "../antChecksumFiles" is changed into "." (obvious for working with the tutorial), a NPE occurs due to the .gradle-directory that is automatically created.

Suggestion: add a check to ensure that we only run checksum on an ordinary file:

if (file.isFile)

{ ant.checksum(file:[...]}

 Comments   
Comment by Hans Dockter [ 31/Aug/09 ]

Thanks for pointing this out.

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