I have a NullPointerException while setting the SelectionListener if I do not
add data to the MultiChoice before:
mcSL = new MultiChoice<PoJo>(main, SWT.NONE);
mcSL.setNumberOfColumns(4);
mcSL.setSeparator(" - ");
gridData = new GridData(SWT.FILL, SWT.BEGINNING, false, false);
mcSL.setLayoutData(gridData);
mcSL.setSelectionListener(new MultiChoiceSelectionListener<PoJo>(mcSL)
{
@Override
public void handle(MultiChoice<PoJo> parent, PoJo receiver, boolean selected, Shell popup)
{
}
});
Caused by: java.lang.NullPointerException
at org.mihalis.opal.multiChoice.MultiChoice.updateSelection(Unknown Source)
at org.mihalis.opal.multiChoice.MultiChoice.refresh(Unknown Source)
at org.mihalis.opal.multiChoice.MultiChoice.setSelectionListener(Unknown Source)
Original issue reported on code.google.com by OliverRa...@googlemail.com on 12 Dec 2013 at 4:32
Original issue reported on code.google.com by
OliverRa...@googlemail.com
on 12 Dec 2013 at 4:32