Avoid potential NPE
This commit is contained in:
parent
88714ece4d
commit
f7c9828cc1
|
@ -151,7 +151,7 @@ public class HuamiSupport extends AbstractBTLEDeviceSupport {
|
|||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
String s = intent.getAction();
|
||||
if (s.equals(DeviceInfoProfile.ACTION_DEVICE_INFO)) {
|
||||
if (DeviceInfoProfile.ACTION_DEVICE_INFO.equals(s)) {
|
||||
handleDeviceInfo((nodomain.freeyourgadget.gadgetbridge.service.btle.profiles.deviceinfo.DeviceInfo) intent.getParcelableExtra(DeviceInfoProfile.EXTRA_DEVICE_INFO));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue