We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b35095d commit 0eaa5e3Copy full SHA for 0eaa5e3
JsonArray.cpp
@@ -9,7 +9,7 @@
9
JsonArray::JsonArray(char* json, jsmntok_t* tokens)
10
: JsonObjectBase(json, tokens)
11
{
12
- if (tokens[0].type != JSMN_ARRAY)
+ if (tokens == 0 || tokens[0].type != JSMN_ARRAY)
13
makeInvalid();
14
}
15
JsonHashTable.cpp
@@ -11,7 +11,7 @@
JsonHashTable::JsonHashTable(char* json, jsmntok_t* tokens)
- if (tokens[0].type != JSMN_OBJECT)
+ if (tokens == 0 || tokens[0].type != JSMN_OBJECT)
16
17
0 commit comments