The problem is that the return value of `destinati...
# announcements
n
The problem is that the return value of
destinationContext.getDestination()
is a mock, and calling
position
on that mock returns
null
. Since one of the later versions of Mockito the
any()
method does not accept null values anymore. Instead, use
anyOrNull()
. You are probably using an earlier version of Mockito yourself than the one that is being pulled in by Mockito-Kotlin.