Fix possible NPE

This commit is contained in:
Aidan Brady 2013-10-26 23:23:11 -04:00
parent c730fab1eb
commit 3dab655328

View file

@ -50,8 +50,12 @@ public class ClientConnectionHandler implements IConnectionHandler
@Override
public void connectionClosed(INetworkManager manager)
{
voiceClient.disconnect();
voiceClient = null;
if(voiceClient != null)
{
voiceClient.disconnect();
voiceClient = null;
}
Mekanism.proxy.unloadSoundHandler();
}