Skip to content

Commit

Permalink
Just add a null check. This will probably have consequences.
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Smock <[email protected]>
  • Loading branch information
tsmock committed Apr 2, 2021
1 parent 256dec3 commit bac2e5f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void run(final HttpClient client) throws IOException {
for (MapillaryAbstractImage img : seq.getImages()) {
LatLon ll = img.getLatLon();
data.add(img);
if (!boundsCollection.isEmpty() && boundsCollection.stream().noneMatch(b -> b.contains(ll))) {
if (ll == null || !boundsCollection.isEmpty() && boundsCollection.stream().noneMatch(b -> b.contains(ll))) {
img.setDeleted(true);
}
}
Expand Down

0 comments on commit bac2e5f

Please sign in to comment.