Multiselect table returns null for getValue

We are seeing instances where a multiselect table will return null for getValue when columns are sorted and using shift-click selection.

This can be easily reproduced on http://demo.vaadin.com/sampler#TableMultipleSelection:

  1. Sort by the Country column
  2. Select Albania
  3. Sort by the Code column
  4. Shift-click on Afghanistan

This results in two problems:

  1. United Arab Emirates and Afghanistan are shown as selected (this is wrong, should be Albania through Afghanistan).
  2. The selection text shows "Selected: [null]
    "