If the json contains an empty array it would crash as there was no check before dereferencing a pointer.
Below constant section should be added to json to get debug output
"constants":
{
"CONFIG_SCRIPT_LOG_LEVEL":"Verbose",
"DUMP_TREE":1
},
Change-Id: I9584fa0c4202ea7907a9235cdfb81264ab3596c6
{
bool groupMyChildren = false;
- if( TreeNode::ARRAY == value->GetType() &&
+ if( TreeNode::ARRAY == value->GetType() && value->mFirstChild &&
( TreeNode::INTEGER == value->mFirstChild->GetType() ||
TreeNode::FLOAT == value->mFirstChild->GetType() ) )
{