diff options
author | Michael Valenta | 2007-07-09 15:11:42 +0000 |
---|---|---|
committer | Michael Valenta | 2007-07-09 15:11:42 +0000 |
commit | b4d012c04975613657e1d7f8803ab34fcfb5fe7f (patch) | |
tree | 177729db8258298356b69722b6171d48c0fc650c | |
parent | eb5cb6a7074580c9111968f1fc437c165ad92767 (diff) | |
download | eclipse.platform.team-b4d012c04975613657e1d7f8803ab34fcfb5fe7f.tar.gz eclipse.platform.team-b4d012c04975613657e1d7f8803ab34fcfb5fe7f.tar.xz eclipse.platform.team-b4d012c04975613657e1d7f8803ab34fcfb5fe7f.zip |
Bug 110378 [Misc] Project > Share Project... with non-project resource selected causes NPE
-rw-r--r-- | bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/ConfigureProjectAction.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/ConfigureProjectAction.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/ConfigureProjectAction.java index 70d94886b..5d3674591 100644 --- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/ConfigureProjectAction.java +++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/ConfigureProjectAction.java @@ -45,11 +45,12 @@ public class ConfigureProjectAction extends TeamAction implements IWorkbenchWind run(new IRunnableWithProgress() { public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { try { + if (!isEnabled()) + return; IProject project = getSelectedProjects()[0]; ConfigureProjectWizard wizard = new ConfigureProjectWizard(); wizard.init(null, project); WizardDialog dialog = new ResizeWizardDialog(getShell(), wizard); - //dialog. dialog.open(); } catch (Exception e) { throw new InvocationTargetException(e); |