diff --git a/co-simulation/fed/mosaic-infrastructure/src/main/java/org/eclipse/mosaic/fed/infrastructure/ambassador/InfrastructureInstance.java b/co-simulation/fed/mosaic-infrastructure/src/main/java/org/eclipse/mosaic/fed/infrastructure/ambassador/InfrastructureInstance.java index 3b3415ad..edf6d31e 100644 --- a/co-simulation/fed/mosaic-infrastructure/src/main/java/org/eclipse/mosaic/fed/infrastructure/ambassador/InfrastructureInstance.java +++ b/co-simulation/fed/mosaic-infrastructure/src/main/java/org/eclipse/mosaic/fed/infrastructure/ambassador/InfrastructureInstance.java @@ -21,6 +21,8 @@ import java.net.DatagramSocket; import java.net.InetAddress; import java.util.List; +import java.util.ArrayList; + import org.eclipse.mosaic.lib.geo.CartesianPoint; import org.eclipse.mosaic.lib.objects.detector.DetectedObject; @@ -44,7 +46,7 @@ public class InfrastructureInstance { private int simulatedInteractionPort; private CartesianPoint location = null; private DatagramSocket socket = null; - private List sensors; + private List sensors = new ArrayList<>(); /** * Constructor for InfrastructureInstance