Skip to content

Commit

Permalink
Fix NullPointerException in ManeuverView (#123)
Browse files Browse the repository at this point in the history
* change contains to equals

* add changelog entry

---------

Co-authored-by: Julian Schmitt <julian.schmitt@ioki.com>
  • Loading branch information
juschmitt and juschmitt-ioki authored Oct 25, 2024
1 parent 1c8b043 commit 169a6fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Maplibre welcomes participation and contributions from everyone.
```xml
<string name="valhalla_url" translatable="false">https://valhalla1.openstreetmap.de/route</string>
```
- Fix crash on ManeuverView, caused by `contains` not being able to handle null values [#122](https://github.com/maplibre/maplibre-navigation-android/issues/122)

### v3.0.0 - November 5, 2023

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ protected void onDraw(Canvas canvas) {
if (ROUNDABOUT_MANEUVER_TYPES.contains(maneuverType)) {
flip = STEP_MANEUVER_MODIFIER_LEFT.equals(drivingSide);
}
if (STEP_MANEUVER_MODIFIER_LEFT.equals(drivingSide) && STEP_MANEUVER_MODIFIER_UTURN.contains(maneuverModifier)) {
if (STEP_MANEUVER_MODIFIER_LEFT.equals(drivingSide) && STEP_MANEUVER_MODIFIER_UTURN.equals(maneuverModifier)) {
setScaleX(flip ? 1 : -1);
} else {
setScaleX(flip ? -1 : 1);
Expand Down

0 comments on commit 169a6fe

Please sign in to comment.