Prevent exception

pull/209/head
M66B 3 years ago
parent 008469569e
commit f3558b28aa

@ -127,7 +127,7 @@ public class EditTextMultiAutoComplete extends AppCompatMultiAutoCompleteTextVie
@Override @Override
public void run() { public void run() {
try { try {
if (edit == null) if (edit == null || backspace == null)
return; return;
ClipImageSpan[] spans = edit.getSpans(backspace, backspace, ClipImageSpan.class); ClipImageSpan[] spans = edit.getSpans(backspace, backspace, ClipImageSpan.class);
if (spans.length == 1) { if (spans.length == 1) {

Loading…
Cancel
Save