GNOME Bugzilla – Bug 758580
json_reader_is_value returns TRUE for null type but json_reader_get_value throws an error
Last modified: 2017-03-18 18:56:42 UTC
If the reader is on a null value: json_reader_is_value (reader) -> TRUE json_reader_get_value (reader) -> NULL (and throws an error). See attached patch that makes get_value check for the null value to match is_value.
Created attachment 316145 [details] [review] Make json_reader_get_value return a value for the null type. This matches the json_reader_is_value check.
Created attachment 316147 [details] Test case
Thanks for the patch! I've pushed attachment 316145 [details] [review] to master, and turn the stand alone test case into a unit in the JsonReader test suite.