From e6b7a79beed692f401522fff1331f4f56d341639 Mon Sep 17 00:00:00 2001 From: inorichi Date: Wed, 30 Dec 2015 01:47:16 +0100 Subject: [PATCH] Fix a crash --- .../ui/manga/myanimelist/MyAnimeListFragment.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/kanade/mangafeed/ui/manga/myanimelist/MyAnimeListFragment.java b/app/src/main/java/eu/kanade/mangafeed/ui/manga/myanimelist/MyAnimeListFragment.java index 274afaeb20..c2d90f3c5a 100644 --- a/app/src/main/java/eu/kanade/mangafeed/ui/manga/myanimelist/MyAnimeListFragment.java +++ b/app/src/main/java/eu/kanade/mangafeed/ui/manga/myanimelist/MyAnimeListFragment.java @@ -45,10 +45,12 @@ public class MyAnimeListFragment extends BaseRxFragment { } public void setMangaSync(MangaSync mangaSync) { - title.setText(mangaSync.title); - chapters.setText(mangaSync.last_chapter_read + ""); - score.setText(mangaSync.score == 0 ? "-" : decimalFormat.format(mangaSync.score)); - status.setText(getPresenter().myAnimeList.getStatus(mangaSync.status)); + if (mangaSync != null) { + title.setText(mangaSync.title); + chapters.setText(mangaSync.last_chapter_read + ""); + score.setText(mangaSync.score == 0 ? "-" : decimalFormat.format(mangaSync.score)); + status.setText(getPresenter().myAnimeList.getStatus(mangaSync.status)); + } } private void showSearchDialog() {