mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-22 20:13:52 +00:00
fix NullPointerE in first check if mappings were already loaded
This commit is contained in:
1 parent
d982116d3d
commit
f65350326a
1 file changed
+3
+3
@@ -213,6 +213,9 @@ public class RaceLogRaceTracker extends BaseRaceLogEventVisitor implements RaceT
|
||||
|
||||
private <ItemT extends WithID, FixT extends GPSFix> boolean hasMappingAlreadyBeenLoaded(
|
||||
DeviceMapping<ItemT> newMapping, List<DeviceMapping<ItemT>> oldMappings) {
|
||||
if (oldMappings == null) {
|
||||
return false;
|
||||
}
|
||||
for (DeviceMapping<ItemT> oldMapping : oldMappings) {
|
||||
if (newMapping.getDevice() == oldMapping.getDevice()
|
||||
&& newMapping.getTimeRange().liesWithin(oldMapping.getTimeRange())) {
|
||||
|
||||
Reference in new issue
Block a user