Skip to content

Commit

Permalink
Fix null pointer in MergingStopPlaceImporter
Browse files Browse the repository at this point in the history
  • Loading branch information
assadriaz committed Feb 28, 2024
1 parent be15f5a commit abdf72c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import org.springframework.transaction.support.TransactionSynchronizationManager;

import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import java.util.concurrent.ExecutionException;
Expand Down Expand Up @@ -209,6 +210,7 @@ private StopPlace findNearbyOrExistingStopPlace(StopPlace newStopPlace) {
}
return true;
})
.filter(Objects::nonNull)
.findAny();

if(nearbyExistingStopPlace.isPresent()) {
Expand Down

0 comments on commit abdf72c

Please sign in to comment.