Permalink
Browse files

Add a missing NULL check to the gangs feature

  • Loading branch information...
RussellLVP committed Oct 18, 2016
1 parent 0923795 commit 168a5b1992515ed68629e20729a3424c09288afb
Showing with 1 addition and 1 deletion.
  1. +1 −1 javascript/features/gangs/gang_commands.js
@@ -709,7 +709,7 @@ class GangCommands {
Message.GANG_ANNOUNCE_KICKED, player.name, player.id, member.nickname,
gang.name);
if (member.player.isConnected())
if (member.player && member.player.isConnected())
member.player.sendMessage(Message.GANG_KICKED, player.name, gang.name);
return Dialog.displayMessage(

0 comments on commit 168a5b1

Please sign in to comment.