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);
|
view.setTag(viewHolder);
|
||||||
} else {
|
} else {
|
||||||
viewHolder = (ViewHolder) view.getTag();
|
viewHolder = (ViewHolder) view.getTag();
|
||||||
if (dragHelper.getCapturedView() == view) {
|
if (dragHelper != null && dragHelper.getCapturedView() == view) {
|
||||||
dragHelper.abort();
|
dragHelper.abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue