android-rest-client-template icon indicating copy to clipboard operation
android-rest-client-template copied to clipboard

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

Open viertelb opened this issue 5 years ago • 0 comments

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)

viertelb avatar Nov 03 '20 05:11 viertelb