Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

support registration for client that mixes rx and non-rx return types #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

leo2118
Copy link

@leo2118 leo2118 commented Feb 27, 2021

Currently when constructing a client using FlowableClientMethodInvoker, calls fail for any non-Rx types due to an NPE caused by the below lines, since converters are only registered for Rx classes:

Function<Flowable, ?> converter = converters.get(responseType.getRawType());
return converter.apply(flowable);

Implement short-circuiting of any non-rx method invocations to allow both Rx and non-Rx return types to be registered on the same client.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant