From cf889b3450e5e7baff93d5ebb952a9af24649a9b Mon Sep 17 00:00:00 2001 From: kosyak Date: Mon, 4 Mar 2024 18:34:51 +0100 Subject: [PATCH] fix npe --- .../java/eu/siacs/conversations/ui/adapter/MessageAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java b/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java index 71d432e41..f86bab3c9 100644 --- a/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java +++ b/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java @@ -894,7 +894,7 @@ public class MessageAdapter extends ArrayAdapter implements DraggableLi view.setTag(viewHolder); } else { viewHolder = (ViewHolder) view.getTag(); - if (dragHelper.getCapturedView() == view) { + if (dragHelper != null && dragHelper.getCapturedView() == view) { dragHelper.abort(); }