| Summary: | NPE in SimpleArtifactRepositoryFactory | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | Jeff McAffer <jeffmcaffer> | ||||
| Component: | p2 | Assignee: | John Arthorne <john.arthorne> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | 3.5 | ||||||
| Target Milestone: | 3.5 M6 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows Vista | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Jeff McAffer
After debugging this, I found the problem was not that getActualLocation was returning null. The problem is that "file:d:/foo is a relative URI, so the subsequent call to URI.getPath() was returning null. This should be using URIUtil to convert from a URI to a java.io.File. Created attachment 125426 [details]
Fix + tests v01
Fix and regression test. I also changed getActualLocation to propagate an exception rather than swallowing the error and returning null.
Fix released to HEAD. |