Skip to content

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

@wassim-k

Description

@wassim-k

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions