public static @Nullable EncodedImage cloneOrNull(@Nullable EncodedImage encodedImage) {
    return encodedImage != null ? encodedImage.cloneOrNull() : null;
  }
Returns the cloned encoded image if the parameter received is not null, null otherwise.

@param encodedImage the EncodedImage to clone
imagepipeline-base/src/main/java/com/facebook/imagepipeline/image/EncodedImage.java