Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android back button crash #13

Closed
no-dap opened this issue Nov 25, 2020 · 1 comment
Closed

Android back button crash #13

no-dap opened this issue Nov 25, 2020 · 1 comment

Comments

@no-dap
Copy link

no-dap commented Nov 25, 2020

Android IamportActivity에서 webview가 생성된 후에 back button press 시 handleOnActivityResult로 null intent가 전달되면서
아래와 같은 에러가 발생합니다.

java.lang.NullPointerException: Attempt to invoke virtual method 'android.os.Bundle android.content.Intent.getExtras()' on a null object reference
        at kr.iamport.capacitor.IamportCapacitor.handleOnActivityResult(IamportCapacitor.java:45)
        at com.getcapacitor.Bridge.onActivityResult(Bridge.java:776)
        at com.getcapacitor.BridgeActivity.onActivityResult(BridgeActivity.java:214)
        at android.app.Activity.dispatchActivityResult(Activity.java:8110)
        at android.app.ActivityThread.deliverResults(ActivityThread.java:4838)

해당 부분 handling code를 #12 로 PR을 생성해두었습니다.

@no-dap
Copy link
Author

no-dap commented Nov 25, 2020

duplicate of #11

@no-dap no-dap closed this as completed Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant