Skip to content

Commit

Permalink
fix NPEs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jul 1, 2019
1 parent 14401e6 commit baa9625
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -49,7 +49,7 @@ public void broadcastIdentity() {
ProxyServer.getInstance().getScheduler().schedule(DepenizenBungee.instance, new Runnable() {
@Override
public void run() {
if (thisServer.getName() != null) {
if (thisServer != null) {
DepenizenBungee.instance.broadcastPacket(new AddServerPacketOut(thisServer.getName()));
}
}
Expand All @@ -60,7 +60,7 @@ public void broadcastRemoval() {
ProxyServer.getInstance().getScheduler().schedule(DepenizenBungee.instance, new Runnable() {
@Override
public void run() {
if (thisServer.getName() != null) {
if (thisServer != null) {
DepenizenBungee.instance.broadcastPacket(new RemoveServerPacketOut(thisServer.getName()));
}
}
Expand Down

0 comments on commit baa9625

Please sign in to comment.