1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-03 13:44:40 +00:00

Prevent NPE

This commit is contained in:
M66B 2022-07-02 08:51:32 +02:00
parent e08b83bf03
commit 5d46f5b693

View file

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