if (image.previewWidth == 0) Log.w(TAG, String.format(Locale.US, "Preview width was 0 for image: %s", image.webUrl)); assertThat(image.previewWidth).isGreaterThanOrEqualTo(0); if (image.previewHeight == 0) Log.w(TAG, String.format(Locale.US, "Preview height was 0 for image: %s", image.webUrl)); assertThat(image.previewHeight).isGreaterThanOrEqualTo(0); if (image.sampleWidth == 0) Log.w(TAG, String.format(Locale.US, "Sample width was 0 for image: %s", image.webUrl)); assertThat(image.sampleWidth).isGreaterThanOrEqualTo(0); if (image.sampleHeight == 0) Log.w(TAG, String.format(Locale.US, "Sample height was 0 for image: %s", image.webUrl)); assertThat(image.sampleHeight).isGreaterThanOrEqualTo(0);