mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-26 18:47:42 +01:00
Null check
This commit is contained in:
parent
71c86f9f90
commit
e4e01ccb55
@ -345,10 +345,13 @@ public class DownstreamBridge extends PacketHandler
|
|||||||
if ( subChannel.equals( "ServerIP" ) )
|
if ( subChannel.equals( "ServerIP" ) )
|
||||||
{
|
{
|
||||||
ServerInfo info = bungee.getServerInfo( in.readUTF() );
|
ServerInfo info = bungee.getServerInfo( in.readUTF() );
|
||||||
|
if ( info != null )
|
||||||
|
{
|
||||||
out.writeUTF( "ServerIP" );
|
out.writeUTF( "ServerIP" );
|
||||||
out.writeUTF( info.getAddress().getAddress().getHostAddress() );
|
out.writeUTF( info.getAddress().getAddress().getHostAddress() );
|
||||||
out.writeShort( info.getAddress().getPort() );
|
out.writeShort( info.getAddress().getPort() );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Check we haven't set out to null, and we have written data, if so reply back back along the BungeeCord channel
|
// Check we haven't set out to null, and we have written data, if so reply back back along the BungeeCord channel
|
||||||
if ( out != null )
|
if ( out != null )
|
||||||
|
Loading…
Reference in New Issue
Block a user