I am using jDateChooser plugin on netbeans. When application starts it throws nullpointerException but when I choose date it works fine. The one and only one problem is it throws exception at runtime. Following is my code where I am getting exception:
String startDate=new SimpleDateFormat("yyyy-MM-dd").format(filterByStartDateChooser.getDate())
Note: I am using netbeans gui to design form.
Please solve my issue.Thanks