[GRADLE-874] Jetty will throw NullPointerException if project does not have a build file Created: 25/Mar/10 Updated: 04/Jan/13 Resolved: 24/Nov/10 |
|
| Status: | Resolved |
| Project: | Gradle |
| Affects Version/s: | 0.9 |
| Fix Version/s: | 0.9-rc-1 |
| Type: | Bug | ||
| Reporter: | Jesse Eichar | Assignee: | Hans Dockter |
| Resolution: | Fixed | Votes: | 0 |
| Attachments: |
|
| Description |
|
I have attached a project that exhibits this bug. The exception is as follows and I have verified that the null object is the build file. I added several lines for debugging so the line number in the stack trace may be off. I tried to remember the original. Anyhow, one line I added was: System.out.println("buildFile: "+getProject().getBuildFile()); it printed null. java.lang.NullPointerException: null |
| Comments |
| Comment by Jesse Eichar [ 25/Mar/10 ] |
|
Oh. You can't use the wrapper because I updated the build.gradle to work with the latest from trunk. (apply plugin: ) |
| Comment by Hans Dockter [ 19/Apr/10 ] |
|
Hi Jesse, I can't reproduce the bug. Can you still reproduce it? |
| Comment by Jesse Eichar [ 19/Apr/10 ] |
|
I just tested with a recent build and the issue appears fixed. |