Skip to content

Commit

Permalink
do not assign null to double
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-hodgson committed Dec 9, 2024
1 parent df4bb23 commit fb4657a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ public static ErrorPageProps create(
props.type = type;
props.message = message;
props.entityId = entityId;

props.entityVersion =
entityVersion != null ? entityVersion.doubleValue() : null;
if (entityVersion != null) {
props.entityVersion = entityVersion.doubleValue();
}
props.gotoPlace = gotoPlace;
return props;
}
Expand Down

0 comments on commit fb4657a

Please sign in to comment.