mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-25 13:27:41 +00:00
Prevent NPE
This commit is contained in:
parent
b4ecd93f1c
commit
a31cddbe7b
@ -258,7 +258,8 @@ public class MagiskFragment extends Fragment
|
||||
spinner.setEnabled(false);
|
||||
} else {
|
||||
items.add(getString(R.string.cannot_auto_detect));
|
||||
items.addAll(mm.blockList);
|
||||
if (mm.blockList != null)
|
||||
items.addAll(mm.blockList);
|
||||
}
|
||||
ArrayAdapter<String> adapter = new ArrayAdapter<>(getActivity(),
|
||||
android.R.layout.simple_spinner_item, items);
|
||||
|
Loading…
x
Reference in New Issue
Block a user