// DeepLinkDelegate and AppDeepLinkModuleLoader are generated at compile-time.
val deepLinkDelegate = DeepLinkDelegate(AppDeepLinkModuleRegistry())
// Delegate the deep link handling to DeepLinkDispatch.
// It will start the correct Activity based on the incoming Intent URI
val deepLinkResult = deepLinkDelegate.dispatchFrom(this)
This code crashes inside of the library when Activity just launched from launcher:
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.net.Uri.toString()' on a null object reference
at com.airbnb.deeplinkdispatch.BaseDeepLinkDelegate.dispatchFrom(BaseDeepLinkDelegate.java:97)
at com.airbnb.deeplinkdispatch.BaseDeepLinkDelegate.dispatchFrom(BaseDeepLinkDelegate.java:83)
Do we use library wrongly? Should we check that activity launched with Uri?
We have next code in our SplashActivity:
This code crashes inside of the library when Activity just launched from launcher:
Do we use library wrongly? Should we check that activity launched with Uri?