~singpolyma/cheogram-android

5f96fff2186f7e08e61ebc49fc0c3cd3c80afa92 — Stephen Paul Weber 10 months ago bea715c
Fix NPE
1 files changed, 6 insertions(+), 4 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 +6 -4
@@ 2850,13 2850,15 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
            }

            protected void loading() {
                View v = getView();
                loadingTimer.schedule(new TimerTask() {
                    @Override
                    public void run() {
                        getView().post(() -> {
                            loading = true;
                            notifyDataSetChanged();
                        });
                        View v2 = getView();
                        loading = true;

                        if (v == null && v2 == null) return;
                        (v == null ? v2 : v).post(() -> notifyDataSetChanged());
                    }
                }, 500);
            }