From ed17ecab9b84eba290e5346a7391551ec2913041 Mon Sep 17 00:00:00 2001 From: "Nadya.Zabrodina" Date: Tue, 22 Jan 2013 15:59:44 +0400 Subject: [PATCH] EA-42987 - IAE: HgUtil.removePasswordIfNeeded *If there is no default path the dialog push path shouldn't be updated. --- plugins/hg4idea/src/org/zmlx/hg4idea/ui/HgPushDialog.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/hg4idea/src/org/zmlx/hg4idea/ui/HgPushDialog.java b/plugins/hg4idea/src/org/zmlx/hg4idea/ui/HgPushDialog.java index 52bb68be9de9..158d18c06535 100644 --- a/plugins/hg4idea/src/org/zmlx/hg4idea/ui/HgPushDialog.java +++ b/plugins/hg4idea/src/org/zmlx/hg4idea/ui/HgPushDialog.java @@ -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()));