mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Mercurial: checkout fix: check for null later to let new project wizard work.
This commit is contained in:
@@ -61,12 +61,14 @@ public class HgCheckoutProvider implements CheckoutProvider {
|
||||
clone.setRepositoryURL(dialog.getSourceRepositoryURL());
|
||||
clone.setDirectory(targetDir);
|
||||
final HgCommandResult myCloneResult = clone.execute();
|
||||
if (myCloneResult != null && myCloneResult.getExitValue() == 0 && listener != null) {
|
||||
if (myCloneResult != null && myCloneResult.getExitValue() == 0) {
|
||||
ApplicationManager.getApplication().invokeLater(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
listener.directoryCheckedOut(new File(dialog.getParentDirectory(), dialog.getDirectoryName()));
|
||||
listener.checkoutCompleted();
|
||||
if (listener != null) {
|
||||
listener.directoryCheckedOut(new File(dialog.getParentDirectory(), dialog.getDirectoryName()));
|
||||
listener.checkoutCompleted();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user