ThanosFisherman / WifiUtils

Easily Connect to WiFi Networks
Apache License 2.0
731 stars 188 forks source link

WifiUtils.withContext(context) .remove(SSID, object : RemoveSuccessListener ) Method will have a null pointer #106

Open o0daxu0o opened 3 years ago

o0daxu0o commented 3 years ago

The error is as follows:(It should be to get the wifi configuration null pointer)

java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference at com.thanosfisherman.wifiutils.ConfigSecurities.getWifiConfiguration(ConfigSecurities.java:171) at com.thanosfisherman.wifiutils.ConnectorUtils.removeWifi(ConnectorUtils.java:532) at com.thanosfisherman.wifiutils.WifiUtils.remove(WifiUtils.java:315) at com.smartship.wifihotspot.MainActivity$1$1.run(MainActivity.java:300)