mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Add assertion if there are no branches to update or to merge with.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user