From f88f035e65860038652d9003d6e3dced97fe4002 Mon Sep 17 00:00:00 2001 From: Nightblade73 Date: Sun, 14 Apr 2019 21:34:39 +0400 Subject: [PATCH] #55 little fix --- .../java/ru/ulstu/conference/service/ConferenceService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ru/ulstu/conference/service/ConferenceService.java b/src/main/java/ru/ulstu/conference/service/ConferenceService.java index 13ce1d5..9c40295 100644 --- a/src/main/java/ru/ulstu/conference/service/ConferenceService.java +++ b/src/main/java/ru/ulstu/conference/service/ConferenceService.java @@ -68,7 +68,7 @@ public class ConferenceService { if (conferenceDto.getDeadlines().get(deadlineIndex).getId() != null) { conferenceDto.getRemovedDeadlineIds().add(conferenceDto.getDeadlines().get(deadlineIndex).getId()); } - conferenceDto.getDeadlines().remove(conferenceDto.getDeadlines().get(deadlineIndex)); + conferenceDto.getDeadlines().remove((int) deadlineIndex); } private Conference copyFromDto(Conference conference, ConferenceDto conferenceDto) throws IOException {