package org.datatransferproject.datatransfer.google.photos;

import java.io.Serializable;

class PhotoResult implements Serializable {
  private String id;
  private Long bytes;

  public PhotoResult(String id, Long bytes) {
    this.id = id;
    this.bytes = bytes;
  }

  public String getId() {
    return id;
  }

  public Long getBytes() {
    return bytes;
  }
}

@@ -252,16 +252,36 @@
 .bytes =
+ bytes == null ? 0 :
  bytes;%0A

Make sure the PhotoResult does not have a null bytes value to avoid NullPointerExceptions.