microsoft / Cognitive-Face-Android

Cognitive Services Face client library for Android.
https://www.microsoft.com/cognitive-services/en-us/face-api
Other
269 stars 151 forks source link

I have NullPointerException with createPerson. #18

Closed hady13 closed 7 years ago

hady13 commented 7 years ago

image

Hi, I'm using this API for my application. I wanna use the method 'createPerson' as the top image, but I got the NullPointerException like this.

image

The exception line 45 is on ①, and the line 24 is on ② that I wrote with red pen.. (the line number is not excactly equal with the top image, because I delete annotation for capture.)

I wrote the class and method the same as with Sample App.. but I don't know why this happens.. Please help me! T-T

hady13 commented 7 years ago

oh... I got it..! It was because of "SampleApp.getFaceServiceClient()".. Instead of this, I should put my subscriptionkey here..!

mohammed-adil-moughal commented 6 years ago

hey put your subscription key where