mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-26 02:45:31 +01:00
Prevent NPE
This commit is contained in:
@@ -154,7 +154,7 @@ public class FragmentDialogTranslate extends FragmentDialogBase {
|
||||
|
||||
private View _getView(int position, View view) {
|
||||
DeepL.Language language = getItem(position);
|
||||
if (language != null) {
|
||||
if (language != null && language.icon != null && language.name != null) {
|
||||
TextView tv = view.findViewById(android.R.id.text1);
|
||||
|
||||
Drawable icon = ContextCompat.getDrawable(context, language.icon);
|
||||
|
||||
Reference in New Issue
Block a user