Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

["Request"] Fix NPE in bindWithFilter #132

Closed
brezinajn opened this issue May 29, 2020 · 1 comment · Fixed by #134
Closed

["Request"] Fix NPE in bindWithFilter #132

brezinajn opened this issue May 29, 2020 · 1 comment · Fixed by #134
Assignees
Labels
bug Something isn't working
Milestone

Comments

@brezinajn
Copy link

What version are you currently using?
0.10.5
What would you like to see?
bindWithFilter crashes when it encounters second element that satisfies the predicate.
Min. repro:

val list = listOf(1,2,3,4).k()
ListK.monadFilter().fx.monadFilter {
    list.bindWithFilter { it % 2 == 0 }
}.let(::println)

Crashes with NPE.

val list = listOf(1,2,3).k()
ListK.monadFilter().fx.monadFilter {
    list.bindWithFilter { it % 2 == 0 }
}.let(::println)

This works fine though.

@aballano aballano self-assigned this May 29, 2020
@aballano aballano transferred this issue from arrow-kt/arrow May 29, 2020
@aballano aballano added the bug Something isn't working label May 29, 2020
@aballano aballano added this to the 0.11.0 milestone May 29, 2020
aballano added a commit that referenced this issue May 29, 2020
@aballano
Copy link
Member

aballano commented May 29, 2020

Fixed, thank you a lot for the report @brezinajn!! It should be available soon in the snapshot and in the next version we release (0.11).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants