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

fix: android intent type null on android 10 #7

Merged
merged 2 commits into from
Feb 24, 2024

Conversation

achorein
Copy link
Owner

Summary

Fix the error occurring on device Android 10 (SDK 29) :

Exception java.lang.NullPointerException:
  at expo.modules.shareintent.ExpoShareIntentModule$Companion.handleShareIntent (ExpoShareIntentModule.kt:64)
  at expo.modules.shareintent.ExpoShareIntentModule$definition$lambda$4$$inlined$OnNewIntent$1.invoke (ModuleDefinitionBuilder.kt:144)
  at expo.modules.shareintent.ExpoShareIntentModule$definition$lambda$4$$inlined$OnNewIntent$1.invoke (ModuleDefinitionBuilder.kt:117)
  at expo.modules.kotlin.events.EventListenerWithPayload.call (EventListener.kt:25)
  at expo.modules.kotlin.ModuleHolder.post (ModuleHolder.kt:100)
  at expo.modules.kotlin.ModuleRegistry.post (ModuleRegistry.kt:94)
  at expo.modules.kotlin.AppContext.onNewIntent$expo_modules_core_release (AppContext.kt:350)
  at expo.modules.kotlin.ReactLifecycleDelegate.onNewIntent (ReactLifecycleDelegate.kt:37)
  at com.facebook.react.bridge.ReactContext.onNewIntent (ReactContext.java:322)
  at com.facebook.react.ReactInstanceManager.onNewIntent (ReactInstanceManager.java:535)
  at com.facebook.react.ReactActivityDelegate.onNewIntent (ReactActivityDelegate.java:183)
  at expo.modules.ReactActivityDelegateWrapper.onNewIntent (ReactActivityDelegateWrapper.kt:254)
  at com.facebook.react.ReactActivity.onNewIntent (ReactActivity.java:102)
  at android.app.Activity.performNewIntent (Activity.java:7971)
  at android.app.Instrumentation.callActivityOnNewIntent (Instrumentation.java:1407)
  at android.app.Instrumentation.callActivityOnNewIntent (Instrumentation.java:1420)
  at android.app.ActivityThread.deliverNewIntents (ActivityThread.java:3770)
  at android.app.ActivityThread.handleNewIntent (ActivityThread.java:3782)
  at android.app.servertransaction.NewIntentItem.execute (NewIntentItem.java:53)
  at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:135)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:95)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2220)
  at android.os.Handler.dispatchMessage (Handler.java:107)
  at android.os.Looper.loop (Looper.java:237)
  at android.app.ActivityThread.main (ActivityThread.java:8016)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1076)

Todo

Issue

Base automatically changed from fix/android-warnings to main February 24, 2024 18:50
@achorein achorein merged commit 2ec9d05 into main Feb 24, 2024
3 checks passed
@achorein achorein deleted the fix/android-intent-type-null branch February 24, 2024 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant