mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Fix NullPointerException caused by 0acba61522 calling getMacAddress when DiscoveryActivity might not have had deviceTarget set
Discovered via Bangle.js App Store ANR reporting
This commit is contained in:
+1
@@ -806,6 +806,7 @@ public class DiscoveryActivityV2 extends AbstractGBActivity implements AdapterVi
|
||||
|
||||
@Override
|
||||
public String getMacAddress() {
|
||||
if (deviceTarget==null) return null;
|
||||
return deviceTarget.getDevice().getAddress();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user