Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c8895885 authored by Myles Watson's avatar Myles Watson Committed by Automerger Merge Worker
Browse files

Merge "PanService: Check mNetworkFactory for null" am: 99b4ede1 am: 51067538

Change-Id: I27304b7e69c707f9e90371d7c8f9111bcfc63019
parents fa984e0d 51067538
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -621,8 +621,10 @@ public class PanService extends ProfileService {
                        getBaseContext(), getMainLooper(), this);
                mNetworkFactory.startReverseTether(iface);
            } else if (state == BluetoothProfile.STATE_DISCONNECTED) {
                if (mNetworkFactory != null) {
                    mNetworkFactory.stopReverseTether();
                    mNetworkFactory = null;
                }
                mPanDevices.remove(device);
            }
        }