Skip to content
This repository has been archived by the owner on Jun 20, 2021. It is now read-only.

Commit

Permalink
Fix userList crash when user got corrupt records from AL
Browse files Browse the repository at this point in the history
  • Loading branch information
ratan12 committed Jul 18, 2016
1 parent b609869 commit dd6eb0a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ private ArrayList<net.somethingdreadful.MAL.api.BaseModels.AnimeManga.Anime> con
ArrayList<net.somethingdreadful.MAL.api.BaseModels.AnimeManga.Anime> newList = new ArrayList<>();
if (list != null)
for (ListDetails detail : list) {
if (detail.getManga() == null) {
if (detail.getManga() == null && detail.getAnime() != null) {
net.somethingdreadful.MAL.api.BaseModels.AnimeManga.Anime anime = new net.somethingdreadful.MAL.api.BaseModels.AnimeManga.Anime();
Anime AD = detail.getAnime();
anime.setId(AD.getId());
Expand Down Expand Up @@ -173,7 +173,7 @@ private ArrayList<net.somethingdreadful.MAL.api.BaseModels.AnimeManga.Manga> con
ArrayList<net.somethingdreadful.MAL.api.BaseModels.AnimeManga.Manga> newList = new ArrayList<>();
if (list != null)
for (ListDetails detail : list) {
if (detail.getAnime() == null) {
if (detail.getAnime() == null && detail.getManga() != null) {
net.somethingdreadful.MAL.api.BaseModels.AnimeManga.Manga manga = new net.somethingdreadful.MAL.api.BaseModels.AnimeManga.Manga();
Manga MD = detail.getManga();
manga.setId(MD.getId());
Expand Down

0 comments on commit dd6eb0a

Please sign in to comment.