if (oldName != null && newName != null && newName != "") {
if (oldName != null && newName != null && newName.compareTo("") != 0) {
    public void editChannel(String oldName, String newName, boolean paramAllowedForGuest, Vector allowedUserNames) {        if (oldName != null && newName != null && newName != "") {            if (oldName.compareTo(this.channelAdministration.FOYERNAME) != 0) {                Channel tmpChannel = new Channel(newName, paramAllowedForGuest);                Enumeration enum;                //Channel ist nicht fr Gste, benutze allowedUserNames                if (!paramAllowedForGuest) {                    if (allowedUserNames != null) {                        enum = allowedUserNames.elements();                    }                    else {                        enum = (                            new Vector()).elements();                    }                    //fge die berechtigten Benutzer hinzu                    while (enum.hasMoreElements()) {                        tmpChannel.addToAllowedUserList(this.userAdministration.getFromUserListByName((String)enum.nextElement()));                    }                }                //Channel ist fr Gste freigegeben, fge alle Benutzer hinzu                else {                    tmpChannel.setAllowedUserList(this.userAdministration.getUserEnum());                }                this.channelAdministration.editChannel(oldName, tmpChannel);                this.dataBaseIO.saveToDisk();            }        }