Skip to content

Commit

Permalink
Fix null issues with getConnectedSSID
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrey Charles committed Nov 12, 2015
1 parent a860efe commit 3958178
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/android/src/com/pylonproducts/wifiwizard/WifiWizard.java
Original file line number Diff line number Diff line change
Expand Up @@ -466,10 +466,10 @@ private boolean getConnectedSSID(CallbackContext callbackContext){
}

String ssid = info.getSSID();
if(ssid.isEmpty()) {
if(ssid == null || ssid.isEmpty()) {
ssid = info.getBSSID();
}
if(ssid.isEmpty()){
if(ssid == null || ssid.isEmpty() || ssid == "0x"){
callbackContext.error("SSID is empty");
return false;
}
Expand Down

0 comments on commit 3958178

Please sign in to comment.