-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Location#compareTo(Location) breaks with undefined Location #3518
Comments
The issue actually does not concern Location but instead IssueDialog where sorting is done without checking for these NullPointerExceptions. May also be an edge case of Java documentation for Array.sort, which can't take Comparators that don't accept null values |
Well, Probably easy to fix by making the comparison |
The issue is reasonably easy to fix and I believe I found a somewhat elegant solution to this. |
Was fixed in #3519 |
Description
The Location class may be instantiated without an associated file. This causes fileUri to be null. Due to this Location::compareTo causes a NullPointerException, when used by a Location without an associated file
Reproducible
always
Steps to reproduce
Expected to sort by their Position objects. Actually throws NullPointerException.
Additional information
8e28439
The text was updated successfully, but these errors were encountered: