Skip to content

modelmapper can't map from a NULL or empty String to LocalDate #13

Open
@felipealvesgnu

Description

@felipealvesgnu

I'm trying to map from a NULL json string field and I'm getting:

1) Converter org.modelmapper.module.jsr310.ToTemporalConverter@e3441d9 
      failed to convert java.lang.String to java.time.LocalDate.

1 error] with root cause
                 java.lang.NullPointerException: null
...

and when with an empty string field I get:

1) Converter org.modelmapper.module.jsr310.ToTemporalConverter@25b6e24d 
       failed to convert java.lang.String to java.time.LocalDate.

1 error] with root cause
                 java.time.format.DateTimeParseException: Text '' could not be parsed at index 0
	...

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