suxinmin / android-query

Automatically exported from code.google.com/p/android-query
0 stars 0 forks source link

ArrayIndexOutOfBoundsException in FacebookHandle.decodeUrl #157

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. new FacebookHandler(activity, appId, permissions)
2. facebookHandle.sso(requestCode)
3. aQuery.auth(facebookHandle).ajax("https://graph.facebook.com/me/feed", 
String.class, new AjaxCallback<String>() {})

What is the expected output? What do you see instead?
No exception.

What version of the product are you using? On what operating system?
android-query-full.0.25.10.jar
android 4.2.2

Please provide any additional information below.
E/AndroidRuntime(31589): FATAL EXCEPTION: main
E/AndroidRuntime(31589): java.lang.ArrayIndexOutOfBoundsException: length=1; 
index=1
E/AndroidRuntime(31589):    at 
com.androidquery.auth.FacebookHandle.decodeUrl(FacebookHandle.java:352)
E/AndroidRuntime(31589):    at 
com.androidquery.auth.FacebookHandle.parseUrl(FacebookHandle.java:363)
E/AndroidRuntime(31589):    at 
com.androidquery.auth.FacebookHandle.access$0(FacebookHandle.java:359)
E/AndroidRuntime(31589):    at 
com.androidquery.auth.FacebookHandle$FbWebViewClient.checkDone(FacebookHandle.ja
va:240)
E/AndroidRuntime(31589):    at 
com.androidquery.auth.FacebookHandle$FbWebViewClient.shouldOverrideUrlLoading(Fa
cebookHandle.java:277)
E/AndroidRuntime(31589):    at 
com.androidquery.WebDialog$DialogWebViewClient.shouldOverrideUrlLoading(WebDialo
g.java:158)
E/AndroidRuntime(31589):    at 
android.webkit.CallbackProxy.uiOverrideUrlLoading(CallbackProxy.java:270)
E/AndroidRuntime(31589):    at 
android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:377)
E/AndroidRuntime(31589):    at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(31589):    at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(31589):    at 
android.app.ActivityThread.main(ActivityThread.java:5195)
E/AndroidRuntime(31589):    at java.lang.reflect.Method.invokeNative(Native 
Method)
E/AndroidRuntime(31589):    at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(31589):    at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
E/AndroidRuntime(31589):    at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
E/AndroidRuntime(31589):    at dalvik.system.NativeStart.main(Native Method)

Original issue reported on code.google.com by aschnei...@dismoiou.fr on 16 Oct 2013 at 3:20

GoogleCodeExporter commented 9 years ago
Same error with:
android-query-full.0.26.2-beta.jar
android-query-full.0.25.10.jar
android-query-full.0.24.3.jar

Still can't find a way to catch it.

Original comment by aschnei...@dismoiou.fr on 16 Oct 2013 at 3:24