Change-Id: I305626a61a07d2290e7d5600da4c26f2a82ab1c9
ifd1.removeTag(ExifInterface.getTrueTagKey(ExifInterface.TAG_JPEG_INTERCHANGE_FORMAT));
ifd1.removeTag(ExifInterface
.getTrueTagKey(ExifInterface.TAG_JPEG_INTERCHANGE_FORMAT_LENGTH));
- } else {
+ } else if (ifd1 != null) {
// Get rid of offset and length tags if there is no thumbnail.
ifd1.removeTag(ExifInterface.getTrueTagKey(ExifInterface.TAG_STRIP_OFFSETS));
ifd1.removeTag(ExifInterface.getTrueTagKey(ExifInterface.TAG_STRIP_BYTE_COUNTS));
}
long[] data = new long[value.length];
- System.arraycopy(value, 0, data, 0, value.length);
+ for (int i = 0; i < value.length; i++) {
+ data[i] = value[i];
+ }
mValue = data;
mComponentCountActual = value.length;
return true;