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

Fix: UninitializedPropertyAccessException in UnknownLinesHandler #2407

Merged
merged 3 commits into from
Aug 25, 2024

Conversation

j10a1n15
Copy link
Contributor

@j10a1n15 j10a1n15 commented Aug 24, 2024

What

This Pull Request fixes the UninitializedPropertyAccessException that occurs in the UnknownLinesHandler, if the repository event never fired.

Stacktrace

SkyHanni 0.27.Beta.1: Caught an UninitializedPropertyAccessException in CustomScoreboard at LorenzTickEvent: lateinit property remoteOnlyPatterns has not been initialized

Caused by kotlin.UninitializedPropertyAccessException: lateinit property remoteOnlyPatterns has not been initialized
at SH.features.gui.customscoreboard.UnknownLinesHandler.getRemoteOnlyPatterns$1_8_9(UnknownLinesHandler.kt:17)
at SH.features.gui.customscoreboard.UnknownLinesHandler.handleUnknownLines(UnknownLinesHandler.kt:137)
at SH.features.gui.customscoreboard.CustomScoreboard.onTick(CustomScoreboard.kt:102)
at SH.data.MinecraftData.onTick(MinecraftData.kt:76)
at FML.common.eventhandler.EventBus.post(EventBus.java:140)

Changelog Fixes

  • Fixed Custom Scoreboard Error when no repository exists. - j10a1n15

Signed-off-by: J10a1n15 <45315647+j10a1n15@users.noreply.github.com>
@github-actions github-actions bot added the Bug Fix Bug fixes label Aug 24, 2024
@hannibal002 hannibal002 added this to the Version 0.27 milestone Aug 25, 2024
@hannibal002 hannibal002 merged commit 6e5f9d1 into hannibal002:beta Aug 25, 2024
4 checks passed
@github-actions github-actions bot removed the Bug Fix Bug fixes label Aug 25, 2024
@j10a1n15 j10a1n15 deleted the fix/unknown-lines-error branch August 25, 2024 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants