Skip to content

Conversation

@Smart123s
Copy link
Contributor

Summary of your change

After Bungee recieved a plugin message from Bukkit, that it has completed login/register for a Floodgate player, bungee would throw a NullPointerException:

java.util.concurrent.CompletionException: java.lang.NullPointerException: Cannot invoke "com.github.games647.fastlogin.bungee.BungeeLoginSession.getProfile()" because "loginSession" is null
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[?:?]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1807) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: java.lang.NullPointerException: Cannot invoke "com.github.games647.fastlogin.bungee.BungeeLoginSession.getProfile()" because "loginSession" is null
at com.github.games647.fastlogin.bungee.listener.PluginMessageListener.onSuccessMessage(PluginMessageListener.java:131) ~[?:?]
at com.github.games647.fastlogin.bungee.listener.PluginMessageListener.readMessage(PluginMessageListener.java:92) ~[?:?]
at com.github.games647.fastlogin.bungee.listener.PluginMessageListener.lambda$onPluginMessage$0(PluginMessageListener.java:84) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) ~[?:?]
... 3 more

Related issue

Strangely, no one has reported this issue. It exist in yesterday's build , idk about later versions, I haven't tested it.

After Bungee recieved a plugin message from Bukkit, that it has
completed login/register for a Floodgate player, bungee would throw a
NullPointerException: Cannot invoke "BungeeLoginSession.getProfile()"
because "loginSession" is null
@TuxCoding TuxCoding added the bug Something isn't working label Oct 24, 2021
@TuxCoding TuxCoding merged commit d2c94af into TuxCoding:main Oct 24, 2021
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 this pull request may close these issues.

2 participants