diff --git a/app/build.gradle b/app/build.gradle index 901012504..7f01cf3a5 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -7,8 +7,8 @@ android { applicationId "fr.gouv.etalab.mastodon" minSdkVersion 15 targetSdkVersion 27 - versionCode 85 - versionName "1.6.5" + versionCode 86 + versionName "1.6.5.1" } flavorDimensions "default" buildTypes { diff --git a/app/src/main/java/fr/gouv/etalab/mastodon/fragments/DisplayStatusFragment.java b/app/src/main/java/fr/gouv/etalab/mastodon/fragments/DisplayStatusFragment.java index b7b4d7149..c39579b33 100644 --- a/app/src/main/java/fr/gouv/etalab/mastodon/fragments/DisplayStatusFragment.java +++ b/app/src/main/java/fr/gouv/etalab/mastodon/fragments/DisplayStatusFragment.java @@ -320,7 +320,7 @@ public class DisplayStatusFragment extends Fragment implements OnRetrieveFeedsIn } } - if (Long.parseLong(tmpStatuses.get(tmpStatuses.size()-1).getId()) > Long.parseLong(bookmark)) { + if (tmpStatuses.size() > 0 && Long.parseLong(tmpStatuses.get(tmpStatuses.size()-1).getId()) > Long.parseLong(bookmark)) { tmpStatuses.get(tmpStatuses.size()-1).setFetchMore(true); } this.statuses.addAll(position, tmpStatuses);