Closed
Description
While I was implementing #3434 I've found two problems with OperatorFinally
.
I'll call OperatorFinally.action
as finallyAction
for better readability.
- If
finallyAction
isnull
—NullPointerException
will be swallowed bySafeSubscriber
, this can be solved viaaction != null
check in theOperatorFinally
(I'll make PR). - If
finallyAction
throws exception,lift
callsonError()
andOperatorFinally
invokesfinallyAction
again (this may brake user-defined logic)! And second exception is swallowed by theSafeSubscriber
(see problem 1).
I vote for solving both of these problems before 1.0.15/1.1.10.