Skip to content

PositionImpl init throws NullPointerException #5694

@laxpio

Description

@laxpio

Describe the bug
version 2.4.1

code path:
managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/PositionImpl.java

init function

public static PositionImpl get(PositionImpl other) {
        return new PositionImpl(other);
    }
public PositionImpl(PositionImpl other) {
        this.ledgerId = other.ledgerId;
        this.entryId = other.entryId;
    }

when the param "other" be Null Object, the process will throw NullPointerException.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions