Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE on images without iccBytes #32

Open
zeppelinux opened this issue Apr 5, 2024 · 0 comments
Open

NPE on images without iccBytes #32

zeppelinux opened this issue Apr 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@zeppelinux
Copy link

zeppelinux commented Apr 5, 2024

  • JPEG Autorotate Version: 1.1.0
  • Java Version: 17

It fails on NullPointerException while processing some (any image from Pixel 6 Pro) images, here is the stack trace:

Caused by: java.lang.NullPointerException: Cannot invoke "[B.clone()" because "this.iccBytes" is null at org.apache.commons.imaging.formats.jpeg.segments.App2Segment.getIccBytes(App2Segment.java:90) at org.apache.commons.imaging.formats.jpeg.JpegImageParser.getICCProfileBytes(JpegImageParser.java:295) at org.apache.commons.imaging.Imaging.getICCProfileBytes(Imaging.java:545) at org.apache.commons.imaging.Imaging.getICCProfile(Imaging.java:440) at org.apache.commons.imaging.Imaging.getICCProfile(Imaging.java:363) at org.apache.commons.imaging.Imaging.getICCProfile(Imaging.java:345) at com.domenicseccareccia.jpegautorotate.imaging.JpegImageMetadataReader.readIccProfile(JpegImageMetadataReader.java:118) at com.domenicseccareccia.jpegautorotate.imaging.JpegImageMetadata.<init>(JpegImageMetadata.java:55) at com.domenicseccareccia.jpegautorotate.imaging.JpegImage.<init>(JpegImage.java:35) at com.domenicseccareccia.jpegautorotate.imaging.JpegImageProcessor.process(JpegImageProcessor.java:65) at com.domenicseccareccia.jpegautorotate.JpegAutorotate.rotate(JpegAutorotate.java:157)

JPEG image files
If applicable, add jpeg image files causing the error when processed with JPEG Autorotate.
IMG_20240329_154929_653

@zeppelinux zeppelinux added the bug Something isn't working label Apr 5, 2024
zeppelinux added a commit to zeppelinux/jpeg-autorotate that referenced this issue Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant