few JSON fixes and tests

This commit is contained in:
aleks-f
2013-03-18 20:59:29 -05:00
parent 9cc9697e2a
commit ab952e689d
8 changed files with 946 additions and 184 deletions

View File

@@ -594,7 +594,10 @@ bool Parser::readRow(bool firstCall)
{
if (token->asChar() == ',')
{
_handler->comma();
if (_handler != NULL)
{
_handler->comma();
}
return true; // Read next row
}
else if (token->asChar() == '}')
@@ -781,7 +784,10 @@ bool Parser::readElements(bool firstCall)
if (token->asChar() == ',')
{
_handler->comma();
if (_handler != NULL)
{
_handler->comma();
}
return true;
}