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

NullPointerException after resume #1070

Open
3 tasks done
Tyrrx opened this issue Sep 10, 2024 · 0 comments
Open
3 tasks done

NullPointerException after resume #1070

Tyrrx opened this issue Sep 10, 2024 · 0 comments

Comments

@Tyrrx
Copy link

Tyrrx commented Sep 10, 2024

Bug Report

Problem

I am getting some crash reports on Google Play Console with the stack trace below. I am not sure if this issue is caused due to my application code or if this is an internal issue.

What is expected to happen?

Resume without exception.

What does actually happen?

See stack trace.

Information

Stack trace (That is all I have at the moment):

Exception java.lang.RuntimeException:
  at android.app.ActivityThread.performResumeActivity (ActivityThread.java:5426)
  at android.app.ActivityThread.handleResumeActivity (ActivityThread.java:5507)
  at android.app.servertransaction.ResumeActivityItem.execute (ResumeActivityItem.java:57)
  at android.app.servertransaction.ActivityTransactionItem.execute (ActivityTransactionItem.java:45)
  at android.app.servertransaction.TransactionExecutor.executeLifecycleState (TransactionExecutor.java:180)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:98)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2685)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loopOnce (Looper.java:230)
  at android.os.Looper.loop (Looper.java:319)
  at android.app.ActivityThread.main (ActivityThread.java:8913)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:608)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1103)
Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.Window org.apache.cordova.inappbrowser.InAppBrowserDialog.getWindow()' on a null object reference
  at org.apache.cordova.inappbrowser.InAppBrowser.onResume (InAppBrowser.java:373)
  at org.apache.cordova.PluginManager.onResume (PluginManager.java:300)
  at org.apache.cordova.CordovaWebViewImpl.handleResume (CordovaWebViewImpl.java:502)
  at org.apache.cordova.CordovaActivity.onResume (CordovaActivity.java:287)
  at android.app.Instrumentation.callActivityOnResume (Instrumentation.java:1603)
  at android.app.Activity.performResume (Activity.java:9119)
  at android.app.ActivityThread.performResumeActivity (ActivityThread.java:5399)

Command or Code

Probably lock the screen or leave the app and then resume.

Environment, Platform, Device

Android 14 (SDK 34)
samsung gta7litewifi (Galaxy Tab A7 Lite)

Version information

"cordova-android": "^13.0.0
"cordova": "^12.0.0

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
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