Skip to content

Handle missing @Reference gracefully #607

Open
@elicore

Description

@elicore

When using @Reference to hold another document's key name, if the referred document is missing (deleted due to e.g. processing issues, eviction and so on), reading the referring document throws a NPE when the library tries to read the referred document which doesn't exist.

Suggested solution: catch the error in this case and throw a more specific exception (e.g. MissingReferenceError/MissingDocumentError).

Version used: 0.9.11

Metadata

Metadata

Assignees

No one assigned

    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