Small safety measure against null device

This commit is contained in:
cpfeiffer
2018-01-04 00:12:59 +01:00
parent 45cc837f9b
commit b9f19970df
@@ -69,7 +69,8 @@ public class AppManagerActivity extends AbstractGBFragmentActivity {
Bundle extras = getIntent().getExtras();
if (extras != null) {
mGBDevice = extras.getParcelable(GBDevice.EXTRA_DEVICE);
} else {
}
if (mGBDevice == null) {
throw new IllegalArgumentException("Must provide a device when invoking this activity");
}