diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ControlCenter.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ControlCenter.java index e63e00ebd..47c94ff8c 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ControlCenter.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/ControlCenter.java @@ -72,8 +72,10 @@ public class ControlCenter extends GBActivity { case DeviceManager.ACTION_DEVICES_CHANGED: refreshPairedDevices(); GBDevice selectedDevice = deviceManager.getSelectedDevice(); - refreshBusyState(selectedDevice); - enableSwipeRefresh(selectedDevice); + if (selectedDevice != null) { + refreshBusyState(selectedDevice); + enableSwipeRefresh(selectedDevice); + } break; } }