From 118ca1ec301e6ca9e16cd62828bf79d3c4c4c1e0 Mon Sep 17 00:00:00 2001 From: tablatronix <807787+tablatronix@users.noreply.github.com> Date: Thu, 8 Dec 2022 10:15:06 -0600 Subject: [PATCH] fixes #1528 --- WiFiManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WiFiManager.cpp b/WiFiManager.cpp index edd1ed3..0a4af8a 100644 --- a/WiFiManager.cpp +++ b/WiFiManager.cpp @@ -88,7 +88,7 @@ void WiFiManagerParameter::setValue(const char *defaultValue, int length) { // // return false; //@todo bail // } - if(_length != length){ + if(_length != length || _value == nullptr){ _length = length; if( _value != nullptr){ delete[] _value;