~singpolyma/cheogram-android

2f8957d3da5557eaf62f6873a8c2de3b5fca9d0b — Stephen Paul Weber 1 year, 6 months ago c6c0aab
Fix NPE
1 files changed, 2 insertions(+), 0 deletions(-)

M src/main/java/eu/siacs/conversations/entities/Conversation.java
M src/main/java/eu/siacs/conversations/entities/Conversation.java => src/main/java/eu/siacs/conversations/entities/Conversation.java +2 -0
@@ 1325,6 1325,8 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
            if (sessions == null) return 1;

            int count = 2 + sessions.size();
            if (mTabs == null) return count;

            if (count > 2) {
                mTabs.setTabMode(TabLayout.MODE_SCROLLABLE);
            } else {