Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

NullPointerException after clicking "yes, authorize" in the Flickr dialogue

Open
#75 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
android, java

Research direction

Start at OAuthTokenClient.java line 93, then trace how OAuthBaseClient.authorize and OAuthLoginActionBarActivity.onResume pass the authorization response. Reproduce the Flickr flow with the configured private key and secret, identify the null value involved, and verify that clicking “yes, authorize” no longer raises the exception and completes authorization.

Written by the indexing model from the issue text.

Description

Should the code still work?

I added my private key and secret from Flickr API and tried to test this. I am getting this Exception.

D/LoginActivity: in 'AsyncTask.execute:' run: starts
W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.contains(java.lang.CharSequence)' on a null object reference
W/System.err:     at com.codepath.oauth.OAuthTokenClient.fetchAccessToken(OAuthTokenClient.java:93)
        at com.codepath.oauth.OAuthBaseClient.authorize(OAuthBaseClient.java:145)
        at com.codepath.oauth.OAuthLoginActionBarActivity.onResume(OAuthLoginActionBarActivity.java:39)
W/System.err:     at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1456)
        at android.app.Activity.performResume(Activity.java:8135)
        at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4434)
        at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4476)
        at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52)
        at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:223)
        at android.app.ActivityThread.main(ActivityThread.java:7656)
        at java.lang.reflect.Method.invoke(Native Method)
W/System.err:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Dominant language
Java
Stars
327
Forks
169
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from codepath/android-rest-client-template

All issues in codepath/android-rest-client-template

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.