Native Selection getValue results NullPointerException

Hi guys,

i have two nativeselections with an listenerimpelementation in the same class where die nativeselections are declared.

the code is:


	@Override
	public void valueChange(ValueChangeEvent event) {
		if (event.getProperty() == workerSelection) {
			System.out.println(workerSelection.getValue().toString());
		}
		if (event.getProperty() == yearSelection) {
			System.out.println(yearSelection.getValue());
		}
	}

but i get an nullpointerexception. any suggestions?

in addition. iam using the SQLContainer.

The value of select might be null (nothing selected). So you probably get the nullpointerexception from “workerSelection.getValue().toString()”.