Skip to content

Cannot compare head version of ObjectVersionId #110

@Mewel

Description

@Mewel

Comparing the head version of ObjectVersionId leads to a NPE. ObjectVersionId#equals() should check versionNum for null values.

@Test
public void equalsVersionId() {
    assertEquals(ObjectVersionId.head("a"), ObjectVersionId.head("a"));
    assertNotEquals(ObjectVersionId.head("a"), ObjectVersionId.head("b"));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions