Skip to content

CustomBigDecimalComparator NullPointerException #769

@buderjoh

Description

@buderjoh

If you use org.javers.core.diff.custom.CustomBigDecimalComparator with a null value you get an NPE

image

There should be a null check for setScale and possibly for aRounded.equals(bRounded); aswell.

Also minor issue

The comment in line 21 is missing the .class -> BigDecimal.class

JaversBuilder.javers().registerCustomComparator(new CustomBigDecimalComparator(2), BigDecimal).build();

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