adamsp/FragmentStatePagerIssueExample — pull request #1 by rlac (2014-04-25 07:14:11+00:00)
Title: Null check when restoring saved fragment tags.

Fixes NPE in destroyItem after restoring state saved where mSavedState.size() was 0.

Fragment tags (and fragment saved state) are only saved in saveState if mSavedState contains items. If the user has not moved through any pages, then state is saved and restored, a null pointer exception will occur in destroyItem when attempting to store the fragment tag, as mSavedFragmentTags will be null.