microsoft / Trill

Trill is a single-node query processor for temporal or streaming data.
MIT License
1.25k stars 133 forks source link

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

Open wassim-k opened 1 year ago

wassim-k commented 1 year ago

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();
}