Commit a31cddbe authored by topjohnwu's avatar topjohnwu

Prevent NPE

parent b4ecd93f
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment