Bug 239945 [Coolbar] ArrayIndexOutOfBoundsException -1 in CoolBarManager.update
bundles/org.eclipse.jface/src/org/eclipse/jface/action/CoolBarManager.java
internalSetItems(array);
        }
    }
    /**
     * Relocates the given contribution item to the specified index.
     * 
     * @param cbItem
     *            the conribution item to relocate
     * @param index
     *            the index to locate this item
     * @param contributionList
     *            the current list of conrtributions
     * @param itemLocation
     */
    private void relocate(IContributionItem cbItem, int index,
            ArrayList contributionList, HashMap itemLocation) {
        if (!(itemLocation.get(cbItem) instanceof Integer)) {
			return;
		}
        int targetRow = ((Integer) itemLocation.get(cbItem)).intValue();
        int cbInternalIndex = contributionList.indexOf(cbItem);
        
        int insertAt = contributionList.size();
        
        ListIterator iterator = contributionList.listIterator();
        
        collapseSeparators(iterator);
        int currentRow = -1;
        while (iterator.hasNext()) {
            currentRow++;