# HG changeset patch # User padraigob@netbeans.org # Date 1201700686 0 # Node ID b5d58c49461bfbe7273277c266f878ccaf680ceb # Parent 68540460eb28434bcf550dfc8c9eb790d4623449 Issue 125466: fix exception when project is cloned. diff -r 68540460eb28 -r b5d58c49461b mercurial/src/org/netbeans/modules/mercurial/ui/clone/Bundle.properties --- a/mercurial/src/org/netbeans/modules/mercurial/ui/clone/Bundle.properties Wed Jan 30 13:21:35 2008 +0000 +++ b/mercurial/src/org/netbeans/modules/mercurial/ui/clone/Bundle.properties Wed Jan 30 13:44:46 2008 +0000 @@ -45,6 +45,9 @@ MSG_EXTERNAL_CLONE_FROM = INFO Clone Fro MSG_EXTERNAL_CLONE_FROM = INFO Clone From: {0} MSG_EXTERNAL_CLONE_TO = INFO To: {0} MSG_CLONE_NOTHING = Nothing yet comitted, so nothing to Clone. + +MSG_CLONE_NOT_PROJECT = Unable to open Cloned Project.\n\nTo be opened this muct be a NetBeans Project and all NetBeans Project Files\nmust have been committed in the project being Cloned. + LBL_Clone_Progress=Cloning {0}... ClonePanel.fromLabel.text=Source Repository: ClonePanel.toLabel.text=&Parent Directory: diff -r 68540460eb28 -r b5d58c49461b mercurial/src/org/netbeans/modules/mercurial/ui/clone/CloneCompleted.java --- a/mercurial/src/org/netbeans/modules/mercurial/ui/clone/CloneCompleted.java Wed Jan 30 13:21:35 2008 +0000 +++ b/mercurial/src/org/netbeans/modules/mercurial/ui/clone/CloneCompleted.java Wed Jan 30 13:44:46 2008 +0000 @@ -65,6 +65,7 @@ import org.openide.util.HelpCtx; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.netbeans.modules.mercurial.Mercurial; +import org.netbeans.modules.mercurial.util.HgUtils; /** * diff -r 68540460eb28 -r b5d58c49461b mercurial/src/org/netbeans/modules/mercurial/ui/clone/ProjectUtilities.java --- a/mercurial/src/org/netbeans/modules/mercurial/ui/clone/ProjectUtilities.java Wed Jan 30 13:21:35 2008 +0000 +++ b/mercurial/src/org/netbeans/modules/mercurial/ui/clone/ProjectUtilities.java Wed Jan 30 13:44:46 2008 +0000 @@ -75,6 +75,7 @@ final class ProjectUtilities { private static final String ProjectTab_ID_LOGICAL = "projectTabLogical_tc"; // NOI18N public static void selectAndExpandProject( final Project p ) { + if (p == null) return; // invoke later to select the being opened project if the focus is outside ProjectTab SwingUtilities.invokeLater (new Runnable () {