hi, am I missing something or is this a bug? ```va...
# arrow
t
hi, am I missing something or is this a bug?
Copy code
val list = listOf(1,2,3,4).k()

ListK.monadFilter().fx.monadFilter {
    list.bindWithFilter { it % 2 == 0 }
}.let(::println)
crashes with NPE. But this works fine
Copy code
val list = listOf(1,2,3).k()

ListK.monadFilter().fx.monadFilter {
    list.bindWithFilter { it % 2 == 0 }
}.let(::println)
r
that looks like a bug in bindWithFilter
Would you remind reporting it? thanks.
t
Sure 🙂. Just wanted to be sure.
r
shot in the air but the bind continuation is advancing the iterator to a point where there is not ore values and then it tries to access the value in the predicate
just guessing
a
this is an interesting one indeed, I’m taking a look 👀
just got a fix, it’s gonna be fixed in the next release https://github.com/arrow-kt/arrow-core/pull/134
metal 2