Add assertion if there are no branches to update or to merge with.

This commit is contained in:
Nadya.Zabrodina
2013-02-23 19:59:17 +04:00
parent 3d9d40af2c
commit dbbc8bb074
2 changed files with 4 additions and 6 deletions
@@ -118,9 +118,8 @@ public class HgMergeDialog extends DialogWrapper {
}
private void loadBranches(VirtualFile root) {
if (branchesForRepos.get(root) != null) {
branchSelector.setModel(new DefaultComboBoxModel(branchesForRepos.get(root).toArray()));
}
assert branchesForRepos.get(root) != null;
branchSelector.setModel(new DefaultComboBoxModel(branchesForRepos.get(root).toArray()));
}
private void loadTags(VirtualFile root) {
@@ -119,9 +119,8 @@ public class HgUpdateToDialog extends DialogWrapper {
}
private void loadBranches(VirtualFile root) {
if (branchesForRepos.get(root) != null) {
branchSelector.setModel(new DefaultComboBoxModel(branchesForRepos.get(root).toArray()));
}
assert branchesForRepos.get(root) != null;
branchSelector.setModel(new DefaultComboBoxModel(branchesForRepos.get(root).toArray()));
}
private void loadTags(VirtualFile root) {