Skip to content

HypermediaQuery and Steps #5

@kenyamat

Description

@kenyamat

As the representor (HypermediaRepresentation) in HypermediaQuery.ExecuteAsync is set null before looping through Steps, ArgumentNullException will be thrown when NavigateToRelativeUrlQueryStep is included in first Steps,
https://github.com/edandersen/Edsoft.Hypermedia/blob/develop/src/Edsoft.Hypermedia.Client/HypermediaQuery.cs#L33-L39

var client = new HypermediaClient(new Uri(args[0]), new HalSerializer());
var query = client.CreateQuery().WithUrl(args[1]);
var result = client.ExecuteQueryAsync(query).Result; // ArgumentNullException will be thrown

Please review whether we need code changes or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions