Verify that Core does not crash.
ATF script to be added
Summary
If a non-object value is sent in the JSON data field of a SendInternalError query, an assertion is thrown by the JSON library. This PR adds a check to avoid this assertion.
Changelog
Bug Fixes
Check if JSON value is a map before accessing members in SendInternalError handler
Fixes #3887 (partially, case 1)
This PR is ready for review.
Risk
This PR makes no API changes.
Testing Plan
Send a "SendInternalError" query with an integer value in the JSON data field
Verify that Core does not crash. ATF script to be added
Summary
If a non-object value is sent in the JSON data field of a SendInternalError query, an assertion is thrown by the JSON library. This PR adds a check to avoid this assertion.
Changelog
Bug Fixes
CLA