We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 79f7381 + ba5065e commit 1b3dcd3Copy full SHA for 1b3dcd3
wifi/java/android/net/wifi/p2p/WifiP2pService.java
@@ -897,7 +897,11 @@ public boolean processMessage(Message message) {
897
break;
898
case WifiMonitor.P2P_DEVICE_LOST_EVENT:
899
WifiP2pDevice device = (WifiP2pDevice) message.obj;
900
- if (!mSavedPeerConfig.deviceAddress.equals(device.deviceAddress)) {
+
901
+ // If we lose a device during an autonomous group creation,
902
+ // mSavedPeerConfig can be empty
903
+ if (mSavedPeerConfig != null &&
904
+ !mSavedPeerConfig.deviceAddress.equals(device.deviceAddress)) {
905
// Do the regular device lost handling
906
ret = NOT_HANDLED;
907
0 commit comments