Skip to content

Commit

Permalink
Remove invalid try/catch block left over from debug work
Browse files Browse the repository at this point in the history
  • Loading branch information
ex-nerd committed Jun 28, 2011
1 parent f5b1b46 commit 8bd27d3
Showing 1 changed file with 7 additions and 11 deletions.
Expand Up @@ -174,17 +174,13 @@ public void reauthorize(final String appid, JSONArray args) {
final FacebookAuth fba = this;
final String access_token = args.optString(1, null);
final Long expires = args.optLong(2, -1);
try {
if (fba.mFb == null) {
fba.mFb = new Facebook(appid);
fba.mFb.setPlugin(fba);
}
if (access_token != null && expires != -1) {
fba.mFb.setAccessToken(access_token);
fba.mFb.setAccessExpires(expires);
}
} catch (JSONException e) {
e.printStackTrace();
if (fba.mFb == null) {
fba.mFb = new Facebook(appid);
fba.mFb.setPlugin(fba);
}
if (access_token != null && expires != -1) {
fba.mFb.setAccessToken(access_token);
fba.mFb.setAccessExpires(expires);
}
this.success(new PluginResult(PluginResult.Status.OK, fba.mFb.isSessionValid()), this.callback);
}
Expand Down

0 comments on commit 8bd27d3

Please sign in to comment.