Fixed JsonVariant::isNull() not returning true after set((char*)0)

This commit is contained in:
Benoit Blanchon
2019-02-18 16:04:51 +01:00
parent e9b4c6289b
commit 56bf24e1ec
13 changed files with 127 additions and 47 deletions

View File

@@ -33,6 +33,7 @@ class FlashStringAdapter {
}
size_t size() const {
if (!_str) return 0;
return strlen_P(reinterpret_cast<const char*>(_str));
}