Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e549a167 authored by David Luhmer's avatar David Luhmer
Browse files

fix bug that using Observables without a type argument will lead to crashes

parent 82d375a2
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -157,6 +157,8 @@ public class NextcloudRetrofitServiceMethod<T> {
                Type typeArgument = type.getActualTypeArguments()[0];
                return (T) Retrofit2Helper.WrapInCall(nextcloudAPI, request, typeArgument);
            }
        } else if(this.returnType == Observable.class) {
            return (T) nextcloudAPI.performRequestObservable(Object.class, request);
        }

        return nextcloudAPI.performRequest(this.returnType, request);