EA-42987 - IAE: HgUtil.removePasswordIfNeeded

*If there is  no default path the dialog push path shouldn't be updated.
This commit is contained in:
Nadya.Zabrodina
2013-01-22 17:22:08 +04:00
parent 5c99ca8e1e
commit ed17ecab9b
@@ -132,8 +132,10 @@ public class HgPushDialog extends DialogWrapper {
ApplicationManager.getApplication().invokeLater(new Runnable() {
@Override
public void run() {
updateRepositoryUrlText(HgUtil.removePasswordIfNeeded(defaultPath));
myCurrentRepositoryUrl = defaultPath;
if (defaultPath != null) {
updateRepositoryUrlText(HgUtil.removePasswordIfNeeded(defaultPath));
myCurrentRepositoryUrl = defaultPath;
}
updateBranchComboBox(branches);
}
}, ModalityState.stateForComponent(getRootPane()));