-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix: IllegalArgumentException is clearer than ArrayIndexOutOfBounds #1241
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
Gentle ping to @wangela , Hi! can you review this PR? I need to fix this. thanks! 🙇 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comment @SseO-KR , but looks good!
library/src/main/java/com/google/maps/android/data/kml/KmlFeatureParser.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Enrique López Mañas <[email protected]>
Thanks to review! I updated error message @kikoso ! |
## [3.8.2](v3.8.1...v3.8.2) (2023-12-20) ### Bug Fixes * IllegalArgumentException is clearer than ArrayIndexOutOfBounds ([#1241](#1241)) ([9c882be](9c882be))
🎉 This PR is included in version 3.8.2 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Motivation
KMZ with empty coordinates throw ArrayIndexOutOfBounds.
Modification
throw new IllegalArgumentException("It is wrong coordinate, latitude and longitude should be set");
when empty and wrong coordinates.Result
Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
BREAKING CHANGE
footer so when this change is integrated a major version update is triggered. See: https://www.conventionalcommits.org/en/v1.0.0/Fixes #1228 🦕