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 in JPEGImageReader.getImageMetadata() #7

Closed
lmpmbernardo opened this issue Jun 12, 2013 · 2 comments
Closed

NPE in JPEGImageReader.getImageMetadata() #7

lmpmbernardo opened this issue Jun 12, 2013 · 2 comments

Comments

@lmpmbernardo
Copy link

I get this NPE with a particular image with CMYK and an embedded ICC profile. It happens in jpegVariety.getFirstChild().appendChild(app2ICC). The firstChild in the jpegVariety is null. Could this be an issue with the image? Is there a way to attach the image?

@haraldk
Copy link
Owner

haraldk commented Jun 13, 2013

Hi,

I accidentally pushed some experimental code for metadata handling the other day. Just pushed a fix that removes it again.

Unfortunately Metadata isn't fully supported yet (and seems like a lot of work for little gain). See issue #4.

What do you want to do with the metadata? Maybe I can help provide a workaround.

You should be able to add images by drag&drop into this editor. If that doesn't work, try direct email to harald kuhr AT gmail com (add dots where appropriate).

@lmpmbernardo
Copy link
Author

Thanks. The fix works. In fact I can do without the metadata, but the code I am using calls the getMetadata() method and can handle a null metadata (the NPE was the problem). The code is Apache XMLGraphics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants