Skip to content

Commit

Permalink
#1843 Map entity plotter concurrent modification exception (#1844)
Browse files Browse the repository at this point in the history
Co-authored-by: Dennis Sheirer <dsheirer@github.com>
  • Loading branch information
DSheirer and Dennis Sheirer committed Feb 11, 2024
1 parent 1df29b6 commit 7ea8cb6
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/main/java/io/github/dsheirer/map/PlottableEntityHistory.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* ******************************************************************************
* sdrtrunk
* Copyright (C) 2014-2018 Dennis Sheirer
* *****************************************************************************
* Copyright (C) 2014-2024 Dennis Sheirer
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -15,19 +14,17 @@
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>
* *****************************************************************************
* ****************************************************************************
*/

package io.github.dsheirer.map;

import io.github.dsheirer.identifier.Identifier;
import io.github.dsheirer.identifier.IdentifierCollection;
import io.github.dsheirer.module.decode.event.PlottableDecodeEvent;
import org.jdesktop.swingx.mapviewer.GeoPosition;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.jdesktop.swingx.mapviewer.GeoPosition;

/**
* Plottable entity history with location history.
Expand All @@ -52,7 +49,7 @@ public PlottableEntityHistory(Identifier identifier, PlottableDecodeEvent event)
*/
public List<GeoPosition> getLocationHistory()
{
return Collections.unmodifiableList(mLocationHistory);
return new ArrayList<>(mLocationHistory);
}

/**
Expand Down

0 comments on commit 7ea8cb6

Please sign in to comment.