Skip to content

Fix panic on reverse of empty linestrings#163

Merged
paulmach merged 1 commit intopaulmach:masterfrom
jo-me:fix_linestring_reverse
Sep 6, 2025
Merged

Fix panic on reverse of empty linestrings#163
paulmach merged 1 commit intopaulmach:masterfrom
jo-me:fix_linestring_reverse

Conversation

@jo-me
Copy link
Copy Markdown
Contributor

@jo-me jo-me commented Jul 2, 2025

Calling reverse() on an empty LineString causes a panic.
This PR handles this case and also adds it to the corresponding unit test.

The program was tested solely for our own use cases, which might differ from yours.

Jochen Mehlhorn [email protected], Mercedes-Benz Tech Innovation GmbH

Provider Information

Signed-off-by: Jochen.Mehlhorn <[email protected]>
@paulmach
Copy link
Copy Markdown
Owner

paulmach commented Sep 6, 2025

Thank you

@paulmach paulmach merged commit 7627dc6 into paulmach:master Sep 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants