You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 15, 2026. It is now read-only.
Then ServiceFuture.cancel() calls subscription.unsubscribe() which produces NullPointerException, as subscription is null.
The correct code should be serviceFuture.subscription = completable.subscribe(...
Temporary workaround, avoid calling ServiceFuture.fromBody(Completable, ServiceCallback). Use other factory method e.g. ServiceFuture.fromBody(Observable, ServiceCallback).
ServiceFuture.fromBody(Completable, ServiceCallback)does not assign value tosubscriptionclass variable.https://github.com/Azure/autorest-clientruntime-for-java/blob/master/client-runtime/src/main/java/com/microsoft/rest/ServiceFuture.java#L129-L150
Then
ServiceFuture.cancel()callssubscription.unsubscribe()which produces NullPointerException, assubscriptionisnull.The correct code should be
serviceFuture.subscription = completable.subscribe(...Temporary workaround, avoid calling
ServiceFuture.fromBody(Completable, ServiceCallback). Use other factory method e.g.ServiceFuture.fromBody(Observable, ServiceCallback).