diff --git a/src/main/java/at/ac/uibk/gitsearch/service/impl/StatisticsServiceImpl.java b/src/main/java/at/ac/uibk/gitsearch/service/impl/StatisticsServiceImpl.java index db6924a3173c3d21f7d1d9b8177d6ca4b4030f92..4cb3c332ebf66e768582bc8c67810ba36e399b07 100644 --- a/src/main/java/at/ac/uibk/gitsearch/service/impl/StatisticsServiceImpl.java +++ b/src/main/java/at/ac/uibk/gitsearch/service/impl/StatisticsServiceImpl.java @@ -45,7 +45,12 @@ public class StatisticsServiceImpl implements StatisticsService { Statistics statistics = statisticsMapper.toEntity(statisticsDTO); statistics = statisticsRepository.save(statistics); StatisticsDTO result = statisticsMapper.toDto(statistics); - statisticsSearchRepository.save(statistics); + // TODO temporary fix: statistics has a problem with complex exercise ids (e.g. 10:if1/exercise1) :-) + try { + statisticsSearchRepository.save(statistics); + } catch (Exception e) { + log.error("Please fix this problem! ExerciseIds are not numeric any more!", e); + } return result; }