missing checks for native class before calling native code

Change-Id: I1dc77c10e7aff68f8327708291fcff5551722703
http://b/2509668
1 file changed