fix npe
This commit is contained in:
parent
2bae668561
commit
cf889b3450
|
@ -894,7 +894,7 @@ public class MessageAdapter extends ArrayAdapter<Message> implements DraggableLi
|
|||
view.setTag(viewHolder);
|
||||
} else {
|
||||
viewHolder = (ViewHolder) view.getTag();
|
||||
if (dragHelper.getCapturedView() == view) {
|
||||
if (dragHelper != null && dragHelper.getCapturedView() == view) {
|
||||
dragHelper.abort();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue