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:

	public void valueChange(ValueChangeEvent event) {
		if (event.getProperty() == workerSelection) {
		if (event.getProperty() == yearSelection) {

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()”.