mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-24 17:47:41 +01:00
Fix NPE when no Callback is defined FIXES #772
This commit is contained in:
parent
075518b643
commit
608eaace1c
@ -226,7 +226,10 @@ public final class UserConnection implements ProxiedPlayer
|
||||
@Override
|
||||
public void operationComplete(ChannelFuture future) throws Exception
|
||||
{
|
||||
callback.done( future.isSuccess(), future.cause() );
|
||||
if ( callback != null )
|
||||
{
|
||||
callback.done( future.isSuccess(), future.cause() );
|
||||
}
|
||||
|
||||
if ( !future.isSuccess() )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user