diff --git a/app/src/main/java/no/nordicsemi/android/nrftoolbox/profile/BleProfileService.java b/app/src/main/java/no/nordicsemi/android/nrftoolbox/profile/BleProfileService.java index 6e5d66cf..a1aa5cd1 100644 --- a/app/src/main/java/no/nordicsemi/android/nrftoolbox/profile/BleProfileService.java +++ b/app/src/main/java/no/nordicsemi/android/nrftoolbox/profile/BleProfileService.java @@ -587,6 +587,6 @@ public abstract class BleProfileService extends Service implements BleManagerCal * @return true if device is connected to the sensor, false otherwise */ protected boolean isConnected() { - return mBleManager.isConnected(); + return mBleManager != null && mBleManager.isConnected(); } }