When this View is used in an Activity with RxBinding, an eventual call to View#setOnClickListener passing null would result in the View's setOnClickListener method to be invoked with a null argument, causing the following error:
Caused by: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull
Given a simple custom view:
When this
View
is used in anActivity
with RxBinding, an eventual call to View#setOnClickListener passingnull
would result in theView
'ssetOnClickListener
method to be invoked with anull
argument, causing the following error: