안녕하세요. 이번에 웹 보안이슈 문제로 1.14.0으로 업데이트하라는 지침이 있어 업데이트했습니다.
업데이트 후 회원분들에게 아래와 같은 오류가 나는데 어떤 문제인지 확인 부탁드립니다. 감사합니다.
소스 중 굵은 표시라인에서 오류가 나는 것으로 파악됩니다.
소스
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (resultCode == RESULT_OK) {
//카카오톡 로그인
if (Session.getCurrentSession().handleActivityResult(requestCode, resultCode, data)) {
return;
}
}
}
오류
Fatal Exception: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=4, result=-1, data=Intent { }} to activity {login.ActivityLogin}: java.lang.NullPointerException: Attempt to invoke virtual method ‘java.lang.String android.os.BaseBundle.getString(java.lang.String)’ on a null object reference
at android.app.ActivityThread.deliverResults(ActivityThread.java:4519)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4563)
at android.app.ActivityThread.-wrap21(Unknown Source)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1779)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:7002)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)
Caused by java.lang.NullPointerException: Attempt to invoke virtual method ‘java.lang.String android.os.BaseBundle.getString(java.lang.String)’ on a null object reference
at com.kakao.auth.authorization.authcode.TalkAuthCodeService.parseAuthCodeIntent(TalkAuthCodeService.java:99)
at com.kakao.auth.authorization.authcode.TalkAuthCodeService.handleActivityResult(TalkAuthCodeService.java:52)
at com.kakao.auth.authorization.authcode.KakaoAuthCodeManager.handleActivityResult(KakaoAuthCodeManager.java:146)
at com.kakao.auth.Session.handleActivityResult(Session.java:575)
at .login.ActivityLogin.onActivityResult(ActivityLogin.java:701)
at android.app.Activity.dispatchActivityResult(Activity.java:7630)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4515)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4563)
at android.app.ActivityThread.-wrap21(Unknown Source)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1779)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:7002)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)