albrechtf / mcf2pdf

"My CEWE Photobook" MCF to PDF converter
Other
41 stars 36 forks source link

NullPointerException #43

Closed gregwill closed 3 years ago

gregwill commented 6 years ago

mcf2pdf 0.34 crashes with a NullPointerException for me.

[ERROR] net.sf.mcf2pdf.Main An exception has occured java.lang.NullPointerException at net.sf.mcf2pdf.mcfglobals.McfResourceScanner.scanDirectory(McfResourceScanner.java:66) at net.sf.mcf2pdf.mcfglobals.McfResourceScanner.scanDirectory(McfResourceScanner.java:68) at net.sf.mcf2pdf.mcfglobals.McfResourceScanner.scanDirectory(McfResourceScanner.java:68) at net.sf.mcf2pdf.mcfglobals.McfResourceScanner.scanDirectory(McfResourceScanner.java:68) at net.sf.mcf2pdf.mcfglobals.McfResourceScanner.scan(McfResourceScanner.java:58) at net.sf.mcf2pdf.Mcf2FoConverter.(Mcf2FoConverter.java:132) at net.sf.mcf2pdf.Main.main(Main.java:188)

Full output attached error.txt

gregwill commented 6 years ago

I read the source, and worked out that this must be some kind of special file type. I'd set the MCF_TEMP_DIR to my Windows home directory that contains some "Library" folders. When I changed it to an empty directory, the error went away.

It's probably worth adding a null-check to the code regardless, since I think the recursion of these directories can be skipped.

paulerlm commented 5 years ago

i think i have some similary problem with the nullpointerexception - still i don't know what to do. can someone please help me? nullpointer.txt