microsoft / Trill

Trill is a single-node query processor for temporal or streaming data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

wassim-k opened this issue · 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();
}