Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getAuthor(...) must not be null #833

Closed
violine1101 opened this issue Oct 7, 2024 · 0 comments · Fixed by #834
Closed

getAuthor(...) must not be null #833

violine1101 opened this issue Oct 7, 2024 · 0 comments · Fixed by #834
Labels
bug Something isn't working

Comments

@violine1101
Copy link
Member

The Bug

Bug reports with comments without author cause the following error when being mapped:

java.lang.NullPointerException: getAuthor(...) must not be null
    at io.github.mojira.arisa.infrastructure.jira.MappersKt.toDomain(Mappers.kt:222)
    at io.github.mojira.arisa.infrastructure.jira.MappersKt.mapComments(Mappers.kt:330)
    at io.github.mojira.arisa.infrastructure.jira.MappersKt.toDomain(Mappers.kt:113)
    at io.github.mojira.arisa.ExecutorKt.getSearchResultsFromJira(Executor.kt:134)
    at io.github.mojira.arisa.ExecutorKt.access$getSearchResultsFromJira(Executor.kt:1)
    at io.github.mojira.arisa.Executor$1.invoke(Executor.kt:17)
    at io.github.mojira.arisa.Executor$1.invoke(Executor.kt:17)
    at arrow.syntax.function.PartialsKt$partially1$5.invoke(partials.kt:791)
    at arrow.syntax.function.PartialsKt$partially1$4.invoke(partials.kt:783)
    at io.github.mojira.arisa.Executor.getIssuesForRegistry(Executor.kt:89)
    at io.github.mojira.arisa.Executor.executeRegistry(Executor.kt:63)
    at io.github.mojira.arisa.Executor.execute(Executor.kt:39)
    at io.github.mojira.arisa.ExecutionService.runExecutionCycle(ExecutionService.kt:23)
    at io.github.mojira.arisa.ArisaMainKt.main(ArisaMain.kt:30)
    at io.github.mojira.arisa.ArisaMainKt.main(ArisaMain.kt)

Example Ticket

https://bugs.mojang.com/browse/MCPE-13860

Expected behavior

Should be able to map this comment successfully

@violine1101 violine1101 added the bug Something isn't working label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant