Skip to content

Commit

Permalink
mra/api/CorrectedPosition: Protecting of when no vehicles data to cre…
Browse files Browse the repository at this point in the history
…ate corrected positions.
  • Loading branch information
paulosousadias committed Sep 26, 2024
1 parent 4bf911a commit cd465e0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/java/pt/lsts/neptus/mra/api/CorrectedPosition.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ public CorrectedPosition(IMraLogGroup source) {

source.getLsfIndex().hasMultipleVehicles();
Collection<Integer> systemsLst = source.getVehicleSources();
if (systemsLst.isEmpty()) {
NeptusLog.pub().warn("No vehicles positions to create corrected ones for cache to {}", cache);
return;
}

int sysToUse = systemsLst.iterator().next();
long prevTime = -1;

Expand Down

0 comments on commit cd465e0

Please sign in to comment.