diff --git a/src/main/scala/fi/vm/sade/hakurekisteri/integration/ytl/YtlFetchActor.scala b/src/main/scala/fi/vm/sade/hakurekisteri/integration/ytl/YtlFetchActor.scala index 9cd0833fc..db0ba76d1 100644 --- a/src/main/scala/fi/vm/sade/hakurekisteri/integration/ytl/YtlFetchActor.scala +++ b/src/main/scala/fi/vm/sade/hakurekisteri/integration/ytl/YtlFetchActor.scala @@ -224,8 +224,7 @@ class YtlFetchActor( hakuOid: String, tunniste: String ): Future[Option[Throwable]] = { - //val hasErrors = new AtomicBoolean(false) - val errors = new AtomicReference[List[Throwable]]() + val errors = new AtomicReference[List[Throwable]](List.empty) val hasEnded = new AtomicBoolean(false) try {