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)