Skip to content

OperatorFinally calls action twice if action throws exception. Exception thrown by action is swallowed #3435

Closed
@artem-zinnatullin

Description

@artem-zinnatullin

While I was implementing #3434 I've found two problems with OperatorFinally.

I'll call OperatorFinally.action as finallyAction for better readability.

  1. If finallyAction is nullNullPointerException will be swallowed by SafeSubscriber, this can be solved via action != null check in the OperatorFinally (I'll make PR).
  2. If finallyAction throws exception, lift calls onError() and OperatorFinally invokes finallyAction again (this may brake user-defined logic)! And second exception is swallowed by the SafeSubscriber (see problem 1).

I vote for solving both of these problems before 1.0.15/1.1.10.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions