We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following case throws a NPE
Date defaultEpochDate = new Date(0); mapToTimestamp(defaultEpochDate.toInstant())
The problem is for this case EpochSecond and Nano are 0 and this builder does not allow it.
mapstruct-spi-protobuf/support-core/src/main/java/no/entur/abt/mapstruct/common/ProtobufStandardMappings.java
Line 164 in 7ffeba8
I think the solution could be to handle the 0 seconds case and use the Timestamp.getDefaultInstance() instead.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following case throws a NPE
The problem is for this case EpochSecond and Nano are 0 and this builder does not allow it.
mapstruct-spi-protobuf/support-core/src/main/java/no/entur/abt/mapstruct/common/ProtobufStandardMappings.java
Line 164 in 7ffeba8
I think the solution could be to handle the 0 seconds case and use the Timestamp.getDefaultInstance() instead.
The text was updated successfully, but these errors were encountered: