[mediacontroller] Fix to handle changed behaviour of native API 98/233998/1
authorPiotr Kosko <p.kosko@samsung.com>
Thu, 14 May 2020 11:32:43 +0000 (13:32 +0200)
committerPiotr Kosko <p.kosko@samsung.com>
Thu, 21 May 2020 04:24:05 +0000 (06:24 +0200)
commit496a026826b9affa94b85417608a2b80d88e6712
tree7058bfe2b982f6b9482a992f8ef3c3661898595b
parent3e884694be5c1a37aa0ef863cacdfecf4fec3fc8
[mediacontroller] Fix to handle changed behaviour of native API

Native API was returning invalid pointer in case when metadata was
missing. This caused passing junk data to WebAPI. Now native API returns
null if metadata is missing. Unfortunately, Web API design does not
allow null value for metadata members. To workaround this problem, we
just pass empty strings to Javascript.

[Verification] mediacontroller  TCT passrate 100%.

Change-Id: Icb6813c10bc74caff4cecca2cbc6b55788f08a92
src/mediacontroller/mediacontroller_client.cc