if (null != client.getLocalPlayer()) {
if (client.getLocalPlayer() != null) {
    private void setupTeams() {        choTeam.removeAll();        for (int i = 0; i < Player.MAX_TEAMS; i++) {            choTeam.addItem(Player.teamNames[i]);        }        if (null != client.getLocalPlayer()) {            choTeam.setSelectedIndex(client.getLocalPlayer().getTeam());        } else {            choTeam.setSelectedIndex(0);        }    }