From a59f0f67c6f99715c03cc3c14f348a853daad960 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Pich?= Date: Sat, 26 Jan 2019 18:55:25 +0100 Subject: [PATCH] Make symbol not null --- .../io/github/wulkanowy/api/repository/StudentRepository.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/kotlin/io/github/wulkanowy/api/repository/StudentRepository.kt b/src/main/kotlin/io/github/wulkanowy/api/repository/StudentRepository.kt index 4d41c1fd..3d0da287 100644 --- a/src/main/kotlin/io/github/wulkanowy/api/repository/StudentRepository.kt +++ b/src/main/kotlin/io/github/wulkanowy/api/repository/StudentRepository.kt @@ -139,6 +139,7 @@ class StudentRepository(private val api: StudentService) { weight = "$weightValue,00" weightValue = if (isGradeValid(entry)) weightValue else 0 color = if ("0" == color) "000000" else color.toInt().toString(16).toUpperCase() + symbol = symbol ?: "" } }.sortedByDescending { it.date } }?.flatten()