json-parser: add handling for NULL token list
authorMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 1 Jun 2011 17:15:00 +0000 (12:15 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 7 Jun 2011 18:52:11 +0000 (13:52 -0500)
commit8c5d5a0effb57b331d5042863dc3b9075dff1088
treed658e474c4f362bc2a0bcdb12ab2d9abc51bb2c4
parent1d2616f8711d3a22e2adc7bee5a30a069636e8d4
json-parser: add handling for NULL token list

Currently a NULL token list will crash the parser, instead we have it
pass back a NULL QObject.

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
json-parser.c