Hi i am getting this error while using a pageViwer and Adapter to slide across 3 fragments.
here is my pageAdapter
public class FreedomPageAdapter ex
In my case It was due to returning some null fragment, which was not handled in the getItem(position) function. Hope it helps someone.