1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-30 19:56:10 +00:00

Fixed rare crash

This commit is contained in:
M66B 2022-10-27 09:40:51 +02:00
parent 406fad2779
commit 107622992a

View file

@ -43,6 +43,7 @@ import android.text.style.TypefaceSpan;
import android.text.style.URLSpan;
import android.text.style.UnderlineSpan;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;
@ -603,7 +604,7 @@ public class HtmlEx {
at eu.faircode.email.FragmentCompose$54.onExecute(SourceFile:1)
at eu.faircode.email.SimpleTask$2.run(SourceFile:5)
*/
return (T[]) new Object[0];
return (T[]) Array.newInstance(type, 0);
}
}
}