ValidationInfo () { if (myBranchOrTagRadioButton.isSelected()) { Url branchLocation = myBranchTagBaseModel.getSelected(); if (branchLocation == null) { return new ValidationInfo(message("dialog.message.no.branch.base.location.selected"), myBranchTagBaseComboBox.getComboBox()); } if (isEmptyOrSpaces(myBranchTextField.getText())) { return new ValidationInfo(message("dialog.message.branch.name.is.empty"), myBranchTextField); } try { myDestination = branchLocation.appendPath(myBranchTextField.getText(), false); } catch (SvnBindException e) { return new ValidationInfo(message("dialog.message.invalid.branch.name"), myBranchTextField); } } else { try { myDestination = createUrl(myToURLText.getText(), false); } catch (SvnBindException e) { return new ValidationInfo(message("dialog.message.invalid.branch.url"), myToURLText.getTextField()); } } return null; }