Skip to content
This repository was archived by the owner on Feb 22, 2020. It is now read-only.
This repository was archived by the owner on Feb 22, 2020. It is now read-only.

NullReferenceException: Object reference not set to an instance of an object. #44

Open
@rhalaly

Description

@rhalaly

I'm receiving NullReferenceException: Object reference not set to an instance of an object. Microsoft.Azure.Documents.DocumentCollection.get_DocumentsLink() when I use that project with Microsoft.Azure.DocumentDB v2.2.1.

It seems that DocumentsLink property is using SelfLink but new DocumentCollection { Id = ... } sets that propery as null so DocumentsLink is trying to use null.

How should I solve it? And why can't us give the collection URI with UriFactory instead of the DocumentCollection instance?

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