fixed compile error

This commit is contained in:
anhefti 2019-05-02 15:51:13 +02:00
parent 7bf8edaa54
commit e2383fa4b3

View file

@ -11,6 +11,7 @@ package ch.ethz.seb.sebserver.gui.service.examconfig.impl;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.NoSuchElementException;
import java.util.stream.Collectors;
import org.apache.tomcat.util.buf.StringUtils;
@ -95,7 +96,7 @@ public class ExamConfigurationServiceImpl implements ExamConfigurationService {
.stream()
.filter(b -> b.builderFor(attribute, orientation))
.findFirst()
.orElseThrow();
.orElseThrow(() -> new NoSuchElementException("No InputFieldBuilder found for : " + attribute.type));
}
@Override