Skip to content

Commit

Permalink
Fix a potential NullReference exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
steffen-wilke committed Jul 28, 2019
1 parent dc0343d commit c53b036
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -15,6 +15,10 @@ public Float unmarshal(String v) throws Exception {

@Override
public String marshal(Float v) throws Exception {
if (v == null) {
return null;
}

if (v.floatValue() % 1 == 0) {
return Integer.toString(v.intValue());
}
Expand Down

0 comments on commit c53b036

Please sign in to comment.