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

NullPointerException when loading plugin with BungeeCord (latest build) #37

Open
ByteExceptionM opened this issue Nov 11, 2024 · 1 comment

Comments

@ByteExceptionM
Copy link

Description:
After switching from Waterfall to BungeeCord (latest build) running on Java 21, I encounter the following exception in the console when starting the BungeeCord proxy:

[WARNING] Exception encountered when loading plugin: MinecraftSentryReporter
java.lang.NullPointerException: Cannot invoke "java.util.logging.Logger.addHandler(java.util.logging.Handler)" because the return value of "java.util.logging.Logger.getParent()" is null
    at pl.szczurowsky.minecraftsentryreporter.bungee.MSRBungeePlugin.onEnable(MSRBungeePlugin.java:32)
    at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(PluginManager.java:266)
    at net.md_5.bungee.BungeeCord.start(BungeeCord.java:298)
    at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:67)
    at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)

As a result, the plugin does not report any exceptions to Sentry.

This issue did not occur with Waterfall, and it appears specific to BungeeCord’s handling of the logger setup in the onEnable method.

@Szczurowsky
Copy link
Owner

Hi, thanks for reporting the issue. Plugin wasn't updated for quite a long time, so that might be the cause. I will certainly take a look on this problem in free time.

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

No branches or pull requests

2 participants