From 9f6dcad791533b847c710029446498b9e001d4d9 Mon Sep 17 00:00:00 2001 From: Pedro Gabriel Planel Date: Sun, 23 Jan 2022 23:01:05 -0300 Subject: [PATCH] Both infoids and _ap_password are intialized by check time. (#1344) Comparing it to NULL raises operation overload. --- WiFiManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WiFiManager.cpp b/WiFiManager.cpp index a42d6295..4b14d2ef 100644 --- a/WiFiManager.cpp +++ b/WiFiManager.cpp @@ -1904,7 +1904,7 @@ void WiFiManager::handleInfo() { #endif for(size_t i=0; i"); if(_showInfoUpdate){ @@ -3227,7 +3227,7 @@ String WiFiManager::toStringIp(IPAddress ip) { boolean WiFiManager::validApPassword(){ // check that ap password is valid, return false - if (_apPassword == NULL) _apPassword = ""; + if (_apPassword.isEmpty()) _apPassword = ""; if (_apPassword != "") { if (_apPassword.length() < 8 || _apPassword.length() > 63) { #ifdef WM_DEBUG_LEVEL