Trill icon indicating copy to clipboard operation
Trill copied to clipboard

Calling Connect() on a ConnectableStreamable without subscribers throw System.NullReferenceException

Open wassim-k opened this issue 1 year ago • 0 comments

The following code:

var stream = Observable.Empty<int>()
    .ToAtemporalStreamable()
    .Publish();

stream.Connect();

Throws a null reference exception in the folliwng line:

public void OnNext(StreamMessage<TKey, TPayload> batch)
{
    this.on(batch); // <===== on is null here
    batch.Free();
}

wassim-k avatar May 19 '23 00:05 wassim-k