→ Caused by: java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter context
at com.companyA.moduleB.PretreatmentServiceImpl.onPretreatment(Unknown Source:2)
at com.alibaba.android.arouter.launcher._ARouter.navigation(_ARouter.java:286)
at com.alibaba.android.arouter.launcher.ARouter.navigation(ARouter.java:186)
at com.alibaba.android.arouter.facade.Postcard.navigation(Postcard.java:148)
at com.alibaba.android.arouter.facade.Postcard.navigation(Postcard.java:139)
at com.alibaba.android.arouter.facade.Postcard.navigation(Postcard.java:130)
at com.alibaba.android.arouter.launcher._ARouter.afterInit(_ARouter.java:247)
at com.alibaba.android.arouter.launcher.ARouter.init(ARouter.java:46)
at com.greendot.core.router.Router.init(Router.kt:20)
Version
→ Latest Version 1.5.2
Case
→ It will caused NullPointException if we implement the interface of 'PretreatmentService' with Kotlin language and parameter type without '?' like this:
Actually
Suggestion ?
Whether the parameter 'context' should be removed from interface of 'PretreatmentService' due to it existed at 'init' function ?
Or whether the parameter 'context' should be checked before passing ?
Issue
Version
Case
Actually
Suggestion ?
Finally