diff options
author | Michael Valenta | 2007-06-07 13:45:17 +0000 |
---|---|---|
committer | Michael Valenta | 2007-06-07 13:45:17 +0000 |
commit | c7cacc02ef37c5845538d5fc84e624b5413c355e (patch) | |
tree | dc7fe16bac1af4c7c7fc1a7e78cf83106bc96de5 /bundles/org.eclipse.team.cvs.ui | |
parent | 4b84426ce64ca1b325d455f3c762f78f8b56623d (diff) | |
download | eclipse.platform.team-c7cacc02ef37c5845538d5fc84e624b5413c355e.tar.gz eclipse.platform.team-c7cacc02ef37c5845538d5fc84e624b5413c355e.tar.xz eclipse.platform.team-c7cacc02ef37c5845538d5fc84e624b5413c355e.zip |
Bug 191342 Checkout operations can add null elements to working set
Diffstat (limited to 'bundles/org.eclipse.team.cvs.ui')
-rw-r--r-- | bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/CheckoutProjectOperation.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/CheckoutProjectOperation.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/CheckoutProjectOperation.java index 7a876f33c..8847c0eab 100644 --- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/CheckoutProjectOperation.java +++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/CheckoutProjectOperation.java @@ -519,9 +519,9 @@ public abstract class CheckoutProjectOperation extends CheckoutOperation { } else { //don't overwrite the old elements IAdaptable[] tempElements = oldSet.getElements(); - IAdaptable[] finalElementList = new IAdaptable[tempElements.length + projects.length]; - System.arraycopy(tempElements, 0, finalElementList, 0, tempElements.length); IAdaptable[] adaptedProjects = oldSet.adaptElements(projects); + IAdaptable[] finalElementList = new IAdaptable[tempElements.length + adaptedProjects.length]; + System.arraycopy(tempElements, 0, finalElementList, 0, tempElements.length); System.arraycopy(adaptedProjects, 0,finalElementList, tempElements.length, adaptedProjects.length); oldSet.setElements(finalElementList); } |