fixed null pointer at disconnect

This commit is contained in:
Light2
2014-03-28 20:36:11 +01:00
parent f0a61f030d
commit 397a35ebad
3 changed files with 5 additions and 3 deletions
@@ -1580,7 +1580,8 @@ public class CreatureObject extends TangibleObject implements IPersistent {
synchronized(objectMutex) {
this.performanceListenee = performanceListenee;
}
getClient().getSession().write(messageBuilder.buildListenToId(performanceListenee.getObjectId()));
if(getClient() != null)
getClient().getSession().write(messageBuilder.buildListenToId(performanceListenee.getObjectId()));
}