Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2005-10-28 16:06:41 +0000
committerMichael Valenta2005-10-28 16:06:41 +0000
commit206917ac633d260429f63091ebce504f37052bcf (patch)
tree7e64db114429a97867ff2a81eb92c31e0301a902
parentf98f997ad0d8ccb1f2d010302b3a307cf7b7503b (diff)
downloadeclipse.platform.team-206917ac633d260429f63091ebce504f37052bcf.tar.gz
eclipse.platform.team-206917ac633d260429f63091ebce504f37052bcf.tar.xz
eclipse.platform.team-206917ac633d260429f63091ebce504f37052bcf.zip
Bug 110378 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/TeamAction.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/TeamAction.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/TeamAction.java
index 2f3c7dde8..0c3745433 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/TeamAction.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/actions/TeamAction.java
@@ -150,7 +150,7 @@ public abstract class TeamAction extends ActionDelegate implements IObjectAction
* @return the selected resources
*/
protected IResource[] getSelectedResources() {
- return Utils.getContributedResources(selection.toArray());
+ return Utils.getContributedResources(getSelection().toArray());
}
protected IStructuredSelection getSelection() {
@@ -166,7 +166,7 @@ public abstract class TeamAction extends ActionDelegate implements IObjectAction
* @return the resource mappings that contain resources associated with the given provider
*/
protected ResourceMapping[] getSelectedResourceMappings(String providerId) {
- Object[] elements = selection.toArray();
+ Object[] elements = getSelection().toArray();
ArrayList providerMappings = new ArrayList();
for (int i = 0; i < elements.length; i++) {
Object object = elements[i];

Back to the top