1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-20 12:00:51 +02:00

Small safety measure against null device

This commit is contained in:
cpfeiffer 2017-12-30 23:06:53 +01:00
parent 45cc837f9b
commit b9f19970df

View File

@ -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");
}