Skip to content

Rx 2.x SingleMap should not allow null mapper? #5376

@kojilin

Description

@kojilin

RxJava 2.0.8

Found code like below can works

Single.just("1234").map(s -> null)
              .subscribe(s -> {
                  System.out.println(s);
              });

Because Single#just not allow null, so SingleMap should not allow it?
should like this? https://github.com/ReactiveX/RxJava/compare/2.x...kojilin:FIX-NPE?expand=1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions