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

The build jar file does not contain the properties files required for I18N, resulting in NPE #57

Open
DustinPT opened this issue Feb 19, 2019 · 2 comments

Comments

@DustinPT
Copy link

DustinPT commented Feb 19, 2019

java.lang.RuntimeException: java.lang.NullPointerException

at com.github.jaiimageio.impl.common.I18NImpl.getString(I18NImpl.java:75)
at com.github.jaiimageio.impl.plugins.bmp.I18N.getString(I18N.java:51)
at com.github.jaiimageio.impl.plugins.bmp.BMPImageReader.checkIndex(BMPImageReader.java:220)
at com.github.jaiimageio.impl.plugins.bmp.BMPImageReader.read(BMPImageReader.java:724)
at javax.imageio.ImageReader.read(ImageReader.java:939)

DustinPT added a commit to DustinPT/jai-imageio-core that referenced this issue Feb 21, 2019
@tballison
Copy link

I just came across this in Apache Tika in prep for our 1.27 release. As @DustinPT points out, https://github.com/jai-imageio/jai-imageio-core/blob/master/src/main/java/com/github/jaiimageio/impl/plugins/bmp/properties is not packaged with the jar.

@tballison
Copy link

tballison commented Jul 21, 2023

Added a temporary workaround in Tika: https://issues.apache.org/jira/browse/TIKA-4104

Thank you @DustinPT for the fix that we used as inspiration!

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