Skip to content
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

Nullpointer Exception for /elements/geometry #141

Closed
FabiKo117 opened this issue Mar 2, 2021 · 0 comments · Fixed by #144
Closed

Nullpointer Exception for /elements/geometry #141

FabiKo117 opened this issue Mar 2, 2021 · 0 comments · Fixed by #144
Labels
bug Something isn't working
Milestone

Comments

@FabiKo117
Copy link
Contributor

The following message was visible in the logs upon an /elements/geometry request:

Mar 01 10:55:02 heigitsv02 ignite.sh[9206]: Caused by: java.lang.NullPointerException
Mar 01 10:55:02 heigitsv02 ignite.sh[9206]: at org.heigit.ohsome.ohsomeapi.executor.ExecutionUtils.createOSMFeature(ExecutionUtils.java:387)

using the following parameters:

bboxes: 7.109777450561525,46.00614082882865,7.187196731567385,46.04559279996195
filter: highway=track and (type:way)
time: 2007-11-01T00:00:00Z/2018-11-01T00:00:00Z/P1M
properties: tags,metadata

The issue is most likely caused by a given null as parameter instead of an empty EnumSet here:

@FabiKo117 FabiKo117 added the bug Something isn't working label Mar 2, 2021
@FabiKo117 FabiKo117 added this to the 1.4 milestone Mar 2, 2021
rtroilo added a commit that referenced this issue Mar 4, 2021
replace null with empty enumset
@joker234 joker234 linked a pull request Mar 4, 2021 that will close this issue
7 tasks
@joker234 joker234 mentioned this issue Mar 4, 2021
7 tasks
rtroilo added a commit that referenced this issue Mar 4, 2021
* fix issue #141

replace null with empty enumset

* Update CHANGELOG.md

* Update ElementsRequestExecutor.java

* Update CHANGELOG.md

* change order of import

Co-authored-by: Johannes Visintini <johannes.visintini@heigit.org>
FabiKo117 added a commit that referenced this issue Mar 5, 2021
add the additional fix for issue #141
FabiKo117 added a commit that referenced this issue Mar 10, 2021
regarding the fix #141

Co-authored-by: Martin Raifer <martin.raifer@heigit.org>
@joker234 joker234 mentioned this issue Mar 11, 2021
3 tasks
tyrasd pushed a commit that referenced this issue Mar 18, 2021
add the additional fix for issue #141
tyrasd added a commit that referenced this issue Mar 18, 2021
regarding the fix #141

Co-authored-by: Martin Raifer <martin.raifer@heigit.org>
tyrasd pushed a commit that referenced this issue Mar 18, 2021
add the additional fix for issue #141
tyrasd added a commit that referenced this issue Mar 18, 2021
regarding the fix #141

Co-authored-by: Martin Raifer <martin.raifer@heigit.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant