diff --git a/src/main/kotlin/io/github/mojira/arisa/Executor.kt b/src/main/kotlin/io/github/mojira/arisa/Executor.kt index bcfd4bdb..b2093cbb 100644 --- a/src/main/kotlin/io/github/mojira/arisa/Executor.kt +++ b/src/main/kotlin/io/github/mojira/arisa/Executor.kt @@ -139,7 +139,7 @@ private fun getSearchResultsFromJira( config ) } catch (exception: Exception) { - log.error("Error mapping bug report ${it.key}:" + exception.message + "\n" + exception.stackTrace) + log.error("Error mapping bug report ${it.key}", exception) null } } diff --git a/src/main/kotlin/io/github/mojira/arisa/infrastructure/jira/Mappers.kt b/src/main/kotlin/io/github/mojira/arisa/infrastructure/jira/Mappers.kt index 92be6d1e..6faeb083 100644 --- a/src/main/kotlin/io/github/mojira/arisa/infrastructure/jira/Mappers.kt +++ b/src/main/kotlin/io/github/mojira/arisa/infrastructure/jira/Mappers.kt @@ -219,7 +219,7 @@ fun JiraComment.toDomain( return Comment( id, body, - author.toDomain(jiraClient, config), + author?.toDomain(jiraClient, config), updateAuthor?.toDomain(jiraClient, config), { getGroups(jiraClient, author.name).fold({ null }, { it }) }, { if (updateAuthor == null) emptyList() else getGroups(jiraClient, updateAuthor.name).fold({ null }, { it }) },