Skip to content

Commit

Permalink
Fix JOSM-20766
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Smock <[email protected]>
  • Loading branch information
tsmock committed Apr 14, 2021
1 parent 64e4b5d commit d903142
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Objects;
import java.util.function.Function;
import java.util.stream.Collectors;

Expand Down Expand Up @@ -87,7 +88,8 @@ public void run(final HttpClient client) throws IOException {
}
}
} else {
if (seq.getImages().stream().anyMatch(image -> bounds.contains(image.getLatLon()))) {
if (seq.getImages().stream().map(MapillaryAbstractImage::getLatLon).filter(Objects::nonNull)
.anyMatch(bounds::contains)) {
data.addAll(seq.getImages(), true);
}
}
Expand Down

0 comments on commit d903142

Please sign in to comment.