Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-19 22:40:18 +01:00
Fix two null issues
Dieser Commit ist enthalten in:
Ursprung
07522a7d8f
Commit
517a69e891
@ -766,7 +766,7 @@ public class GeyserSession implements GeyserConnection, GeyserCommandSource {
|
|||||||
final PendingMicrosoftAuthentication.AuthenticationTask task = geyser.getPendingMicrosoftAuthentication().getOrCreateTask(
|
final PendingMicrosoftAuthentication.AuthenticationTask task = geyser.getPendingMicrosoftAuthentication().getOrCreateTask(
|
||||||
getAuthData().xuid()
|
getAuthData().xuid()
|
||||||
);
|
);
|
||||||
if (task.getAuthentication().isDone()) {
|
if (task.getAuthentication() != null && task.getAuthentication().isDone()) {
|
||||||
onMicrosoftLoginComplete(task);
|
onMicrosoftLoginComplete(task);
|
||||||
} else {
|
} else {
|
||||||
task.resetRunningFlow();
|
task.resetRunningFlow();
|
||||||
|
@ -105,6 +105,10 @@ public class PendingMicrosoftAuthentication {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void resetRunningFlow() {
|
public void resetRunningFlow() {
|
||||||
|
if (authentication == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Interrupt the current flow
|
// Interrupt the current flow
|
||||||
this.authentication.cancel(true);
|
this.authentication.cancel(true);
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren