PDA

View Full Version : Filter With start value -> NullPointerException



HAMON Michel
26 Jul 2010, 1:35 AM
NullPointer Exception with this code:

StringFilter nameFilter = new StringFilter("name");
nameFilter.setValue("a");

I expect i should do something like
StringFilter nameFilter = new StringFilter("name") {
@Override
public void init() {
super.init();
setValue("a")
}
}

but i think that setValue must be callable at any time because sometimes, for user convenience, we want initialise filter with a value

thanks.

sven
26 Jul 2010, 1:50 AM
Can you pelase read the bugforum guidelines for future posts? All your posts up to now dont respect the guidelines in any sense.

sven
26 Jul 2010, 2:01 AM
This is not a real bug, we can look into how it works, but it is not high priority right now.

HAMON Michel
26 Jul 2010, 2:03 AM
Ok
thank you, i will use my workaround.