Enable json tree dump to work with empty arrays 14/112214/1
authorAgnelo Vaz <agnelo.vaz@samsung.com>
Fri, 27 Jan 2017 17:54:10 +0000 (17:54 +0000)
committerAgnelo Vaz <agnelo.vaz@samsung.com>
Fri, 27 Jan 2017 17:54:10 +0000 (17:54 +0000)
commite121ef45809e2585ac40bbf33e472c107a6b2879
tree6896b7544e32a916375f3f9530e62308f95a89f3
parent3da85989734c01ef8767835c06f4f5b4bcf0fc54
Enable json tree dump to work with empty arrays

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
dali-toolkit/internal/builder/tree-node-manipulator.cpp