forked from bblanchon/ArduinoJson
Fixed null pointer exception in JsonArray and JsonHashTable constructors
This commit is contained in:
1 parent
b35095ded1
commit
0eaa5e3f1b
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -9,7 +9,7 @@
|
||||
JsonArray::JsonArray(char* json, jsmntok_t* tokens)
|
||||
: JsonObjectBase(json, tokens)
|
||||
{
|
||||
if (tokens[0].type != JSMN_ARRAY)
|
||||
if (tokens == 0 || tokens[0].type != JSMN_ARRAY)
|
||||
makeInvalid();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user