Tag Archives: Failed to convert property value of type ‘null‘ to required type ‘double‘ for property ‘balance‘

[Solved] Failed to convert property value of type ‘null‘ to required type ‘double‘ for property ‘balance‘

Online method

Solution:

Source code:

    private int id;
    private String name;
    private double balance;

Just replace int and double with integer and decimal wrapper classes integer and double

    private Integer id;
    private String name;
    private Double balance;

Finally, the get and set methods are regenerated and re-run