We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3489c5 commit ba5065eCopy full SHA for ba5065e
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