Fix exception handlings of getter 28/265228/2
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 13 Oct 2021 04:36:58 +0000 (13:36 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 13 Oct 2021 04:40:06 +0000 (13:40 +0900)
commit9a161567278553b84140ad76ff0f88cdfdb71ade
tree088e5a940b20738a315e99073dac372257c0d359
parent546c7183e321176e4982bb4d949648e339931df5
Fix exception handlings of getter

Even though the type is not equal to the request type, the method
returns the value with the error result. After this patch is applied,
the method checks whether the size of the raw data greater than the size or not.
If the type is boolean, the method checks the size of the raw data is
greater than the integer size or not.(This is for backward compatibility.)

Change-Id: I6288710d9ad79d22f8fa45fc50f77fc7245811a8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
preference/preference-internal.cc