diff options
Diffstat (limited to 'org.fox.ttrss/src/main/java')
-rwxr-xr-x | org.fox.ttrss/src/main/java/org/fox/ttrss/ArticlePager.java | 5 | ||||
-rwxr-xr-x | org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineArticlePager.java | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticlePager.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticlePager.java index 0b9fe6c6..c140fe6c 100755 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticlePager.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/ArticlePager.java @@ -58,7 +58,10 @@ public class ArticlePager extends StateSavedFragment { @Override public Parcelable saveState() { Bundle bundle = (Bundle) super.saveState(); - bundle.putParcelableArray("states", null); // Never maintain any states from the base class, just null it out + + if (bundle != null) + bundle.putParcelableArray("states", null); // Never maintain any states from the base class, just null it out + return bundle; } diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineArticlePager.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineArticlePager.java index bded56b5..0b9f98e9 100755 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineArticlePager.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/offline/OfflineArticlePager.java @@ -95,7 +95,10 @@ public class OfflineArticlePager extends Fragment { @Override public Parcelable saveState() { Bundle bundle = (Bundle) super.saveState(); - bundle.putParcelableArray("states", null); // Never maintain any states from the base class, just null it out + + if (bundle != null) + bundle.putParcelableArray("states", null); // Never maintain any states from the base class, just null it out + return bundle; } |