From 395817837424dcbaef8be5f5edb8529f01f7ff60 Mon Sep 17 00:00:00 2001 From: Jeffrey Charles Date: Thu, 12 Nov 2015 15:35:02 -0500 Subject: [PATCH] Fix null issues with getConnectedSSID --- src/android/src/com/pylonproducts/wifiwizard/WifiWizard.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/android/src/com/pylonproducts/wifiwizard/WifiWizard.java b/src/android/src/com/pylonproducts/wifiwizard/WifiWizard.java index 171ad15..de675bf 100644 --- a/src/android/src/com/pylonproducts/wifiwizard/WifiWizard.java +++ b/src/android/src/com/pylonproducts/wifiwizard/WifiWizard.java @@ -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; }