We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdfba56 commit c3cd8c3Copy full SHA for c3cd8c3
android/src/main/java/com/tadasr/IOTWifi/IOTWifiModule.java
@@ -253,7 +253,7 @@ private WifiConfiguration getExistingNetworkConfig(String ssid) {
253
String comparableSSID = ('"' + ssid + '"'); // Add quotes because wifiConfig.SSID has them
254
if (configList != null) {
255
for (WifiConfiguration wifiConfig : configList) {
256
- if (wifiConfig.SSID.equals(comparableSSID)) {
+ if (wifiConfig.SSID != null && wifiConfig.SSID.equals(comparableSSID)) {
257
Log.d("IoTWifi", "Found Matching Wifi: "+ wifiConfig.toString());
258
existingNetworkConfigForSSID = wifiConfig;
259
break;
0 commit comments