Skip to content

getCurrentUser() throw Exception on first load? #20

Description

@henryhks

I found that when I deploy my project on tomcat
The following exception is thrown in the FIRST time I call getCurrentUser() with a valid access token:

......
OAuthAccessToken fbaccessToken = new OAuthAccessToken(accessToken);
Facebook facebook = new Facebook(fbaccessToken);
User user = facebook.getCurrentUser();
......

java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Properties.java:435)
at java.util.Properties.load0(Properties.java:354)
at java.util.Properties.load(Properties.java:342)
at com.face4j.facebook.http.APICaller.getHttpClient(APICaller.java:56)
at com.face4j.facebook.http.APICaller.getData(APICaller.java:115)
at com.face4j.facebook.Facebook.pullData(Facebook.java:991)
at com.face4j.facebook.Facebook.getUser(Facebook.java:87)
at com.face4j.facebook.Facebook.getCurrentUser(Facebook.java:75)

But in the SECOND time the exception will not be thrown

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions