Make symbol not null

This commit is contained in:
Mikołaj Pich 2019-01-26 18:55:25 +01:00
parent b862e14133
commit a59f0f67c6
No known key found for this signature in database
GPG key ID: F62B26E36D4C4BAA

View file

@ -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()