ianlee-dev / facebook-java-api

Automatically exported from code.google.com/p/facebook-java-api
0 stars 0 forks source link

NullPointerException in ExtensibleClient.users_isAppUser #150

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
StackTrace:
2008-12-09 13:06:12,285 ERROR http-9080-Processor20
java.lang.NullPointerException
        at com.google.code.facebookapi.ExtensibleClient.users_isAppUser
(ExtensibleClient.java:743)

Checking the source code of this method it is:
if ( cacheAppUser != null ) {
cacheAppUser = extractBoolean( callMethod
(FacebookMethod.USERS_IS_APP_USER ) );
}
return cacheAppUser;

While I think it should be:
if ( cacheAppUser == null ) {
cacheAppUser = extractBoolean( callMethod
(FacebookMethod.USERS_IS_APP_USER ) );
}
return cacheAppUser;

Original issue reported on code.google.com by tamer...@gmail.com on 9 Dec 2008 at 1:33

GoogleCodeExporter commented 8 years ago
Change committed. Thanks.

Original comment by david.j....@googlemail.com on 21 Dec 2008 at 6:51