Vaadin8 ColorPicker Swatches ArrayIndexOutOfBoundsException

Created a ColorPicker, clicked on the button, switched to the Swatches tab and clicked around. I get exceptions:

java.lang.ArrayIndexOutOfBoundsException: 10
    at com.vaadin.ui.components.colorpicker.ColorPickerGrid$1.select(ColorPickerGrid.java:41)

Code:

        ColorPicker color = new ColorPicker();
        color.setDefaultCaptionEnabled(true);
        color.setHSVVisibility(true);
        color.setHistoryVisibility(true);
        color.setRGBVisibility(true);
        color.setSwatchesVisibility(true);
        color.setTextfieldVisibility(true);

For reference, this seems to be issue
#9018
(and the duplicate
#9474
with this example).