NullPointerException from java.awt.color.ICC_Profile in multi-thread application
Issue
- We got NullpointerException from java.awt.color.ICC_Profile using openjdk11.
# /usr/lib/jvm/java-11-openjdk-11.0.10.0.9-4.el8_3.x86_64/bin/javac -cp ./ MTInitCMM.java
# /usr/lib/jvm/java-11-openjdk-11.0.10.0.9-4.el8_3.x86_64/bin/java MTInitCMM
Exception in thread "Thread-0" java.lang.NullPointerException
at java.desktop/java.awt.color.ICC_Profile.intFromBigEndian(ICC_Profile.java:1763)
at java.desktop/java.awt.color.ICC_Profile.getXYZTag(ICC_Profile.java:1563)
at java.desktop/java.awt.color.ICC_ProfileRGB.getMatrix(ICC_ProfileRGB.java:161)
at MTInitCMM.lambda$main$0(MTInitCMM.java:19)
at java.base/java.lang.Thread.run(Thread.java:834)
...snip...
Environment
- OpenJDK 11
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.