Skip to content

Commit

Permalink
Fixed #475
Browse files Browse the repository at this point in the history
  • Loading branch information
sauterl committed Jul 11, 2024
1 parent 7550a16 commit da6869e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/main/kotlin/dev/dres/mgmt/TemplateManager.kt
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ object TemplateManager {
it.copy(id = null)
},
teams = apiTemplate.teams.map {
it.copy(id = null, logoData = Base64.getEncoder().encodeToString(getTeamLogo(it.teamId)!!.readAllBytes()))
it.copy(id = null, logoData = if(getTeamLogo(it.teamId) != null) {Base64.getEncoder().encodeToString(getTeamLogo(it.teamId)?.readAllBytes())}else{null})
}
)

Expand Down

0 comments on commit da6869e

Please sign in to comment.