mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-29 11:42:55 +01:00
Fix some null pointer issues in ThreadPlayerLookupUUID
This commit is contained in:
parent
7bdb8f9f21
commit
43207df1df
1 changed files with 12 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
--- ../work/decompile-8eb82bde//net/minecraft/server/ThreadPlayerLookupUUID.java 2014-11-28 17:43:43.385707429 +0000
|
||||
+++ src/main/java/net/minecraft/server/ThreadPlayerLookupUUID.java 2014-11-28 17:43:20.977707926 +0000
|
||||
--- ../work/decompile-8eb82bde//net/minecraft/server/ThreadPlayerLookupUUID.java 2015-02-05 10:00:43.580949912 +0000
|
||||
+++ src/main/java/net/minecraft/server/ThreadPlayerLookupUUID.java 2015-02-05 10:00:43.580949912 +0000
|
||||
@@ -5,6 +5,12 @@
|
||||
import java.math.BigInteger;
|
||||
import java.util.UUID;
|
||||
|
@ -58,6 +58,15 @@
|
|||
LoginListener.e().info("UUID of player " + LoginListener.b(this.a).getName() + " is " + LoginListener.b(this.a).getId());
|
||||
LoginListener.a(this.a, EnumProtocolState.READY_TO_ACCEPT);
|
||||
} else if (LoginListener.a(this.a).S()) {
|
||||
@@ -30,7 +74,7 @@
|
||||
LoginListener.a(this.a, EnumProtocolState.READY_TO_ACCEPT);
|
||||
} else {
|
||||
this.a.disconnect("Failed to verify username!");
|
||||
- LoginListener.e().error("Username \'" + LoginListener.b(this.a).getName() + "\' tried to join with an invalid session");
|
||||
+ LoginListener.e().error("Username \'" + gameprofile.getName() + "\' tried to join with an invalid session"); // CraftBukkit - fix null pointer
|
||||
}
|
||||
} catch (AuthenticationUnavailableException authenticationunavailableexception) {
|
||||
if (LoginListener.a(this.a).S()) {
|
||||
@@ -41,6 +85,11 @@
|
||||
this.a.disconnect("Authentication servers are down. Please try again later, sorry!");
|
||||
LoginListener.e().error("Couldn\'t verify username because servers are unavailable");
|
||||
|
@ -65,7 +74,7 @@
|
|||
+ // CraftBukkit start - catch all exceptions
|
||||
+ } catch (Exception exception) {
|
||||
+ this.a.disconnect("Failed to verify username!");
|
||||
+ LoginListener.a(this.a).server.getLogger().log(java.util.logging.Level.WARNING, "Exception verifying " + LoginListener.a(this.a).getName(), exception);
|
||||
+ LoginListener.a(this.a).server.getLogger().log(java.util.logging.Level.WARNING, "Exception verifying " + gameprofile.getName(), exception);
|
||||
+ // CraftBukkit end
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue