RegisterSearchFAQ UsergroupsLog in
NullPointerException in createVisualFilter

 
Reply to topic    Citra Technologies Forum Index » Report a Bug View previous topic
View next topic

NullPointerException in createVisualFilter
Author Message
jdemurcia



Joined: 02 Feb 2009
Posts: 45

Post NullPointerException in createVisualFilter Reply with quote
Hello,

I just upgraded to v4.0.6 as I am interested in one of the new feature. In previous version (3.9.55), I used to do this to get a String filter that is not case sensitive:
Code:
public class CustomStringFilterPanel extends StringAutoFilterPanel {
....
    @Override
    protected VisualFilter createVisualFilter() {
   StringVisualFilter svf = (StringVisualFilter) super.createVisualFilter();
   svf.getCaseSensitive().setSelected(false);
   svf.getCaseSensitive().setVisible(false);
   return svf;
    }
}

With the version v4.0.6, I get a NullPointerException as svf.getCaseSensitive() is null in the createVisualFilter method.

How can we achieve this with version 4.0.6 ?

Thanks for your help!
Wed Feb 29, 2012 9:56 am View user's profile Send private message
support



Joined: 21 Feb 2006
Posts: 1463

Post Reply with quote
Hi,

Call svf.getPanel(), before the call to getCaseSensitive(), so that the components are initialized.

Thanks
Wed Feb 29, 2012 11:33 am View user's profile Send private message
Display posts from previous:    

Reply to topic    Citra Technologies Forum Index » Report a Bug All times are GMT - 5 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group