Skip to content

new QueryStringBuilder on page that has no template thus url returned by UrlResolver is null #47

Description

@gatisb

constructors:
public QueryStringBuilder(ContentReference contentLink, bool includeHost = false)
and
public QueryStringBuilder(ContentReference contentLink, UrlResolver urlResolver, bool includeHost = false)
fail with null pointer exception if contentLink has no template.

However if GetFriendlyUrl is used that returns string.Empty and:
public QueryStringBuilder(string url)
works somewhat fine

Expect the same behavior from both, either both fail or both succeed
new QueryStringBuilder(contentLink.GetFriendlyUrl())
new QueryStringBuilder(contentLink)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions