2013-04-12 67 views
0

Google Play報告例外。有些人也在評論中抱怨。Android Facebook例外

我自己沒有得到這樣的例外。

我應該用try/catch來處理它?

或者我該如何解決? 或者我如何得到完整的堆棧跟蹤?

java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=64206, result=0, data=null} to activity {com.roolez.tinshot/com.facebook.LoginActivity}: java.lang.NullPointerException 
at android.app.ActivityThread.deliverResults(ActivityThread.java:3027) 
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3070) 
at android.app.ActivityThread.access$1100(ActivityThread.java:127) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209) 
at android.os.Handler.dispatchMessage(Handler.java:99) 
at android.os.Looper.loop(Looper.java:137) 
at android.app.ActivityThread.main(ActivityThread.java:4508) 
at java.lang.reflect.Method.invokeNative(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:511) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:809) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:576) 
at dalvik.system.NativeStart.main(Native Method) 
Caused by: java.lang.NullPointerException 
at com.facebook.AuthorizationClient$KatanaProxyAuthHandler.onActivityResult(AuthorizationClient.java:645) 
at com.facebook.AuthorizationClient.onActivityResult(AuthorizationClient.java:142) 
at com.facebook.LoginActivity.onActivityResult(LoginActivity.java:134) 
at android.app.Activity.dispatchActivityResult(Activity.java:4663) 
at android.app.ActivityThread.deliverResults(ActivityThread.java:3023) 
... 11 more 

回答

1

我想我最近遇到了同樣的問題。如果你更新了facebook-android-sdk,應該解決這個問題。在這裏看到的DIFF:

https://github.com/facebook/facebook-android-sdk/commit/ed74ff363e3a7c32b54567e68cc7e86ea27bdbd7#facebook/src/com/facebook/AuthorizationClient.java

專門空校驗添加的文件中排隊619:

的Facebook/src目錄/ COM/Facebook的/ AuthorizationClient.java

+0

我無法驗證這是現在的原因。但它看起來非常像這是問題。謝謝! – Max

+0

沒問題!希望這確實是你的問題! – natez0r