Bug 239945 [Coolbar] ArrayIndexOutOfBoundsException -1 in CoolBarManager.update
bundles/org.eclipse.jface/src/org/eclipse/jface/action/CoolBarManager.java
if (currentRow == targetRow) {
                
                int virtualIndex = 0;
                insertAt = iterator.nextIndex();
                
                
                while (iterator.hasNext()) {
                    IContributionItem item = (IContributionItem) iterator
                            .next();
                    Integer itemRow = (Integer) itemLocation.get(item);
                    if (item.isSeparator()) {
						break;
					}
                    
                    if ((itemRow != null) && (itemRow.intValue() == targetRow)) {
                        
                        
                        if (virtualIndex >= index) {
							break;
						}
                        virtualIndex++;
                    }
                    insertAt++;
                }
                
                if (cbInternalIndex == insertAt) {
					return;
				}
                break;
            }