alibaba / ARouter

💪 A framework for assisting in the renovation of Android componentization (帮助 Android App 进行组件化改造的路由框架)
Apache License 2.0
14.42k stars 2.59k forks source link

It will caused NullPointException if we implement the interface of 'PretreatmentService' with Kotlin language #1055

Open ShenghuaLuo opened 10 months ago

ShenghuaLuo commented 10 months ago

Issue

Case

Actually

image

Suggestion ?

  1. Whether the parameter 'context' should be removed from interface of 'PretreatmentService' due to it existed at 'init' function ?
  2. Or whether the parameter 'context' should be checked before passing ? image

Finally