0

I'm trying to implement a search in the link Mastеr / detail flow. but the search itself does not occur. I looked through many examples and did not find a solution. Please help. The error occurs in the 35 filter line

An exception occured during performFiltering()! java.lang.NullPointerException at com.forma.zsuforma.content_field.CustomFilter.performFiltering(CustomFilter.java:35)

There is a body filter mistake in line 35: NullPointerException. I don't know to do.

public class CustomFilter extends Filter{
            public FormaListActivityBeret.MyAdapter adapter;
            public ArrayList<DummyContentBeret.DummyItemBeret> filterList;
            public CustomFilter(ArrayList<DummyContentBeret.DummyItemBeret> filterList,
    FormaListActivityBeret.MyAdapter adapter)
            {
                this.adapter=adapter;
                this.filterList=filterList;

            }    

This line is giving me trouble:

           for (int i=0;i<filterList.size();i++)

                    {
                     ...
                    }
emsimpson92
  • 1,779
  • 1
  • 9
  • 24

0 Answers0