NPE when using createTestUser(false, "email,user_about_me,user_birthday");

22 views
Skip to first unread message

dtka

unread,
Oct 18, 2011, 1:26:56 PM10/18/11
to facebook-test-java-api
I would like to create a TestUser which will have to accept
permissions first I tried it this way:

FacebookTestUserAccount account = facebookStore.createTestUser(false,
"email,user_about_me,user_birthday");

but I am getting the following exception:

java.lang.NullPointerException
at
com.jayway.facebooktestjavaapi.testuser.impl.HttpClientFacebookTestUserAccount.accessToken(HttpClientFacebookTestUserAccount.java:
127)
at
com.jayway.facebooktestjavaapi.testuser.impl.HttpClientFacebookTestUserStore.createTestUser(HttpClientFacebookTestUserStore.java:
91)

What am I doing wrong?

Tobias Sodergren

unread,
Oct 19, 2011, 8:31:17 AM10/19/11
to facebook-test-java-api
Hi, I've created a unit test which gives the same error as you got.

I've fixed the problem in the source on github, which you may build
yourself using maven.
If you can wait for some days, I'll create a new release (facebook-
test-java-api-1.1.5) on maven central shortly.

Regards,
Tobias

Daniel Tkatch

unread,
Oct 19, 2011, 8:33:38 AM10/19/11
to facebook-te...@googlegroups.com
Hey Tobias,

I can wait a couple of day, no problem :) Could you shortly post it here
when the new version is available on Maven repos?

Cheers,
Daniel


--
Daniel Tkatch
Quality Manager

sMeet Communications GmbH
Ohlauer Str. 43, D-10999 Berlin

Tel: +49 (0)30 288 788 946
Fax: +49 (0)30 9700 5359
E-Mail: daniel...@smeet.com

Handelsregister Berlin Charlottenburg: HRB 107866 B
Geschäftsführer: Sebastian Funke, Reinhard Köhn
Sitz der Gesellschaft: Berlin

Tobias Sodergren

unread,
Oct 20, 2011, 7:31:35 AM10/20/11
to facebook-test-java-api
Hi Daniel, the new version 1.1.5 should now be available on Maven
central.

Please have a look and see if it helps your problem.

Regards,
Tobias
> E-Mail: daniel.tka...@smeet.com
Reply all
Reply to author
Forward
0 new messages