MainActivity: fail fast in NonNull method
This commit is contained in:
parent
68b0b85993
commit
a2c400de9b
|
@ -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?");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue