Location Parent NPE#38
Conversation
|
This no longer needs the rest of the changes from ome/bioformats#2914? |
|
Seconding the concern in #38 (comment), but otherwise changes here all look fine and make sense to me. |
|
As discussed recently, my expectation is that without ome/bioformats#2914, this change would not put us in a worse place. I would expect that:
Obviously, proving these two assertions is the tricky part:
I might try and get back to setting up a testing environment. If that is not the case, it might be equally fine to release |
|
Discussed briefly with @sbesson earlier today. For a concrete test case, I copied With this included: Without this change: That supports the arguments that:
I'd be fine with having this merged for 6.0.0, and including the checks in ome/bioformats#2914 (plus any others as needed, since that diff is now over a year old) in a later patch release. |
See #12, #14 and https://trello.com/c/Ym1HWlQG/73-ome-common-location-exception
This PR resurrect the
Location.getParentFile()NPE fix proposed in #12 but pushed away as potentially breaking now we are converging towards 6.0.0.java.io.FileasLocationis a direct extension/replacement of this classgetParentFile()returnnullifgetParentisnullrather than throwing a NPE). Incidentally, Add S3Handle #33 fixed one of the 2 constructors and c4e54a0 fixes the second one.