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 with latest version #18

Open
roby65 opened this issue Sep 25, 2024 · 1 comment
Open

NullPointerException with latest version #18

roby65 opened this issue Sep 25, 2024 · 1 comment

Comments

@roby65
Copy link

roby65 commented Sep 25, 2024

With the latest SDK, sharing throws this exception after choosing the app in the share dialog:

AndroidRuntime: java.lang.RuntimeException: Unable to start receiver by.chemerisuk.cordova.WebShareReceiver: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.os.Bundle.get(java.lang.String)' on a null object reference
AndroidRuntime: 	at android.app.ActivityThread.handleReceiver(ActivityThread.java:4517)
AndroidRuntime: 	at android.app.ActivityThread.-$$Nest$mhandleReceiver(Unknown Source:0)
AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2240)
AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:106)
AndroidRuntime: 	at android.os.Looper.loopOnce(Looper.java:211)
AndroidRuntime: 	at android.os.Looper.loop(Looper.java:300)
AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:8289)
AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:559)
AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:954)
AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.os.Bundle.get(java.lang.String)' on a null object reference
AndroidRuntime: 	at by.chemerisuk.cordova.WebShareReceiver.onReceive(WebShareReceiver.java:13)
AndroidRuntime: 	at android.app.ActivityThread.handleReceiver(ActivityThread.java:4505)
AndroidRuntime: 	... 9 more
@roby65
Copy link
Author

roby65 commented Sep 27, 2024

#16 fixes the problem

@roby65 roby65 changed the title NullPointerException with Target SDK 34 NullPointerException with latest version Sep 27, 2024
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