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

Commit 4f31a003 authored by Irfan Sheriff's avatar Irfan Sheriff
Browse files

Fix null pointer exception

Bug: 2525763
Change-Id: If2f334187af26e0352d754d7e00a9ca3efc5dffa
parent b127bf2e
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1074,7 +1074,11 @@ public class WifiStateTracker extends NetworkStateTracker {
                break;

            case EVENT_DEFERRED_RECONNECT:
                String BSSID = msg.obj.toString();
                /**
                 * mLastBssid can be null when there is a reconnect
                 * request on the first BSSID we connect to
                 */
                String BSSID = (msg.obj != null) ? msg.obj.toString() : null;
                /**
                 * If we've exceeded the maximum number of retries for reconnecting
                 * to a given network, blacklist the BSSID to allow a connection attempt on