mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 08:48:30 +01:00
Fixed member-call-on-null-pointer in getMember() when array is empty
This commit is contained in:
@@ -115,6 +115,8 @@ inline VariantSlot* CollectionData::getSlot(TAdaptedString key) const {
|
||||
}
|
||||
|
||||
inline VariantSlot* CollectionData::getSlot(size_t index) const {
|
||||
if (!_head)
|
||||
return 0;
|
||||
return _head->next(index);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user