Image (@Nullable Image jbImage) { if (jbImage == null) { return null; } if (!checkSize(jbImage)) { //noinspection CallToPrintStackTrace new IllegalArgumentException("the image has illegal size 0x0").printStackTrace(); } return Converter.convert(jbImage); }