Skip to content

Commit

Permalink
fix issue #141 (#144)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
rtroilo and joker234 authored Mar 4, 2021
1 parent 346cdb9 commit ea5bf0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Changelog
* fix some invalid filters in the default swagger examples ([#111])
* fix returning invalid GeoJSON using empty coordinates for deletion contributions ([#129], [#131])
* fix using a proper boolean data type instead of a string for contributionType in response ([#135])
* fix NPE with createOSMFeature ([#141])

### Performance and Code Quality

Expand All @@ -29,6 +30,7 @@ Changelog
[#131]: https://github.com/GIScience/ohsome-api/issues/131
[#135]: https://github.com/GIScience/ohsome-api/pull/135
[#138]: https://github.com/GIScience/ohsome-api/issues/138
[#141]: https://github.com/GIScience/ohsome-api/issues/141


## 1.3.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import org.heigit.bigspatialdata.oshdb.osm.OSMType;
import org.heigit.bigspatialdata.oshdb.util.OSHDBTag;
import org.heigit.bigspatialdata.oshdb.util.OSHDBTimestamp;
import org.heigit.bigspatialdata.oshdb.util.celliterator.ContributionType;
import org.heigit.bigspatialdata.oshdb.util.geometry.Geo;
import org.heigit.bigspatialdata.oshdb.util.tagtranslator.TagTranslator;
import org.heigit.bigspatialdata.oshdb.util.time.TimestampFormatter;
Expand Down Expand Up @@ -125,7 +126,7 @@ public static void extract(RequestResource requestResource, ElementsGeometry ele
geom = snapshot.getGeometryUnclipped();
}
return exeUtils.createOSMFeature(snapshot.getEntity(), geom, properties, keysInt, includeTags,
includeOSMMetadata, false, elemGeom, null);
includeOSMMetadata, false, elemGeom, EnumSet.noneOf(ContributionType.class));
}).filter(Objects::nonNull);
Metadata metadata = null;
if (processingData.isShowMetadata()) {
Expand Down

0 comments on commit ea5bf0f

Please sign in to comment.