Hello,
I got a problem when generating an album and i think that it is skin-related.
I have made an album with 3 main folders and one or more subfolders inside the main folders.
When i choose "Make Album" everything works fine but just before the album is ready i get this error message:
An unexpected error occurred. Please see detailed description below:
java.lang.NullPointerException: Cannot invoke "String.length()" because "f" is null
at story.Zip.zipFolder(Zip.java:128)
at story.Zip.zipImages(Zip.java:194)
at story.Zip.zipImages(Zip.java:212)
at story.Zip.zipImages(Zip.java:212)
at story.Zip.createZip(Zip.java:311)
at org.openjdk.nashorn.internal.scripts.Script$187$finally.:program(C:\Users\Herman\AppData\Roaming\JAlbum\skins\Story\finally.js:6)
at org.openjdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:646)
at org.openjdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:506)
at org.openjdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:519)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:415)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine$1.eval(NashornScriptEngine.java:476)
at java.scripting/javax.script.CompiledScript.eval(Unknown Source)
at se.datadosen.jalbum.AlbumBean.processExpression(AlbumBean.java:3707)
at se.datadosen.jalbum.AlbumBean.processScript(AlbumBean.java:3629)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:4049)
at se.datadosen.jalbum.AlbumBean.smartMakeAlbum(AlbumBean.java:3860)
at se.datadosen.jalbum.JAlbumFrame$7.run(JAlbumFrame.java:1205)
For now i have discovered a strange workaround:
After several times choosing "Make Album" the album is generated correctly without the errormessage above.
Does anybody know what goes wrong and how to solve this problem?
Thanks in advance.
Herman van Beek