The error isn't handled nicely in this library. If you look at the source of PagerAdapter you will see a method getPageTitle: https://github.com/android/platform_frameworks_support/blob/master/v4/java/android/support/v4/view/PagerAdapter.java#L306-Lundefined
Notice that by default it returns null. This is why you are seeing a null pointer exception. The solution is to override this method in your implementation of PagerAdapter
@Override
public CharSequence getPageTitle(int position) {
// return the title of the tab
}
If you don't actually want a string title, and you want the tab to use a custom view, such as an image, then your PagerAdapter has to implement PagerSlidingTabStrip.TabCustomViewProvider and override getPageTabCustomView
@Override
public View getPageTabCustomView(int position) {
// return a custom view
}
EDIT: In order to use the custom tab view, you will need to use this fork: https://github.com/astuetz/PagerSlidingTabStrip/pull/32