0

Google Play 报告异常。有些人也在评论中抱怨。

我自己没有得到这样的例外。

我应该用 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
4

1 回答 1

1

我想我最近遇到了同样的问题。如果您更新 facebook-android-sdk,这应该可以解决。在这里查看差异:

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

特别是添加到文件第 619 行的空检查:

facebook/src/com/facebook/AuthorizationClient.java

于 2013-04-12T19:05:48.313 回答