NullPointerException after clicking "yes, authorize" in the Flickr dialogue
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
- Domain
- authentication, mobile
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from codepath/android-rest-client-template
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
All issues in codepath/android-rest-client-template
Similar issues
-
area/plugin
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
kestra-io/plugin-kestra#190 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
integra-team-red/meet-map#249 ·
-
[Studio][Bug] Cancelled create-user dialog keeps the password and admin switch for the next attempt Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
apache/rocketmq-dashboard#5064 ·