Skip to content

Commit 9e6cc50

Browse files
committed
Show an error dialog if there are no head repositories
1 parent f4d0c08 commit 9e6cc50

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/java/com/junichi11/netbeans/modules/github/issues/issue/GitHubIssueController.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,7 @@ private boolean closeReopen() {
507507
@NbBundle.Messages({
508508
"CreatePullRequestAction.confirmation.message=Do you want to change this issue to Pull Request?",
509509
"CreatePullRequestAction.error.message.same.branch=Another branch must be set.",
510+
"CreatePullRequestAction.error.message.cannot.find.base.head.repositories=Can't find base or your head repositories.",
510511
"CreatePullRequestAction.descriptor.title=Pull Request"
511512
})
512513
public class CreatePullRequestAction implements ActionListener {
@@ -548,6 +549,7 @@ public void run() {
548549
public void run() {
549550
try {
550551
if (baseRepositories.isEmpty() || headRepositories.isEmpty()) {
552+
UiUtils.showErrorDialog(Bundle.CreatePullRequestAction_error_message_cannot_find_base_head_repositories());
551553
return;
552554
}
553555

0 commit comments

Comments
 (0)