forked from bblanchon/ArduinoJson
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