AdapterService: Fix NPE in JNI and correct type for casting and reference correct method name.
Previously, for bt_oob_data_t this tried to set_data even if the passed OobData was nullptr For the address, it was doing a cast a jbyteArray to RawAddress* which requires a jbyte* so the data is now converted from jbyteArray to jbyte* before casting. getLeFlags is the correct name vs getLeFlag Bug: 17800793 Test: Compiles, Manual test app Tag: #feature Change-Id: Ib001f1f2292e9e57d68131f0c1b0eddc55834b5a
Loading
Please register or sign in to comment