Avoid warning in unsetDynamicState()

This commit is contained in:
cpfeiffer 2015-06-06 23:13:26 +02:00
parent 020d8d74d6
commit 3fe9195d0d
1 changed files with 3 additions and 1 deletions

View File

@ -172,7 +172,9 @@ public class GBDevice implements Parcelable {
setBatteryState(null);
setFirmwareVersion(null);
setRssi(RSSI_UNKNOWN);
unsetBusyTask();
if (mBusyTask != null) {
unsetBusyTask();
}
}
public String getStateString() {