Skip to content

Commit

Permalink
Merge pull request #841 from wmorland/add-bytes-nullsafe
Browse files Browse the repository at this point in the history
Make sure the PhotoResult does not have a null bytes value
  • Loading branch information
wmorland authored Feb 20, 2020
2 parents 9da0503 + 16a1aea commit 986601b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class PhotoResult implements Serializable {

public PhotoResult(String id, Long bytes) {
this.id = id;
this.bytes = bytes;
this.bytes = bytes == null ? 0 : bytes;
}

public String getId() {
Expand Down

0 comments on commit 986601b

Please sign in to comment.