MainActivity: fail fast in NonNull method

This commit is contained in:
Peter Cai 2021-04-02 09:51:45 +08:00
parent 68b0b85993
commit a2c400de9b

View file

@ -217,7 +217,7 @@ public class MainActivity extends AppCompatActivity {
} else if (position == 1) {
return AppListFragment.newInstance(mServiceWork, true);
} else {
return null;
throw new RuntimeException("How did this happen?");
}
}