Problem
In the example below, GetData_1()
throws null pointer exception whereas GetData_2()
returns a value. Why?
Cause
The Query() function may be unmanaged that the return value is destructed.
Or Query() fails to convert the return value into the Data class.