From 79c30bbb47af8a420449e3a067c9bcde30139488 Mon Sep 17 00:00:00 2001 From: Ezerous Date: Mon, 14 May 2018 15:35:48 +0300 Subject: [PATCH] TopicActivity onBackPressed hotfix --- .../java/gr/thmmy/mthmmy/activities/topic/TopicActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicActivity.java b/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicActivity.java index 936335be..0dc6ce6b 100644 --- a/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicActivity.java +++ b/app/src/main/java/gr/thmmy/mthmmy/activities/topic/TopicActivity.java @@ -327,7 +327,7 @@ public class TopicActivity extends BaseActivity { drawer.closeDrawer(); return; } - else if(postsList.get(postsList.size()-1)==null) + else if(postsList!=null && postsList.size()>0 && postsList.get(postsList.size()-1)==null) { postsList.remove(postsList.size() - 1); topicAdapter.notifyItemRemoved(postsList.size());