You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "main" java.lang.NullPointerException
at org.freehep.graphicsio.emf.EMFImageLoader.readImage(EMFImageLoader.java:271)
at org.freehep.graphicsio.emf.gdi.StretchDIBits.read(StretchDIBits.java:95)
at org.freehep.graphicsio.emf.EMFTag.read(EMFTag.java:38)
at org.freehep.util.io.TaggedInputStream.readTag(TaggedInputStream.java:112)
at com.pm.spl.Emf2text.extractText(Emf2text.java:38)
at com.pm.Main.main(Main.java:25)
The EMFImageLoader is called multiple times without providing a BlendFunction. see freehep#43
This causes a NPE, in case the image is a 32 bit EMF.
I don't know if 0xFF is the correct default value, but at least this fixes the NPE.
Exception in thread "main" java.lang.NullPointerException
at org.freehep.graphicsio.emf.EMFImageLoader.readImage(EMFImageLoader.java:271)
at org.freehep.graphicsio.emf.gdi.StretchDIBits.read(StretchDIBits.java:95)
at org.freehep.graphicsio.emf.EMFTag.read(EMFTag.java:38)
at org.freehep.util.io.TaggedInputStream.readTag(TaggedInputStream.java:112)
at com.pm.spl.Emf2text.extractText(Emf2text.java:38)
at com.pm.Main.main(Main.java:25)
00008.zip
The text was updated successfully, but these errors were encountered: