This problem probably has been introduced with jAlbum 34.
I have an album with two "Web locations". If I set the option "Show web locations in the story" to As folder I get the following java exception when I try to make the album. If I select any other option the album is created without any problems.
This is the exception:
java.lang.NullPointerException: Cannot invoke "java.util.List.stream()" because the return value of "se.datadosen.jalbum.AlbumObject.getChildren()" is null
at se.datadosen.jalbum.AlbumObject.getChildren(AlbumObject.java:371)
at org.openjdk.nashorn.internal.scripts.Script$Recompilation$2016$82266AI$util.getRandomThumbs(C:\Users\mail\AppData\Roaming\JAlbum\skins\Story\lib\util.js:3429)
at org.openjdk.nashorn.internal.scripts.Script$Recompilation$2013$8652$\^eval\_.writeOutFolders(<eval>:284)
at org.openjdk.nashorn.internal.scripts.Script$Recompilation$1866$16789A$\^eval\_.flushBuffers(<eval>:485)
at org.openjdk.nashorn.internal.scripts.Script$1864$\^eval\_.:scopeCall(<eval>)
at org.openjdk.nashorn.internal.scripts.Script$1864$\^eval\_.:program(<eval>:673)
at org.openjdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:646)
at org.openjdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:513)
at org.openjdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:520)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:442)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine$1.eval(NashornScriptEngine.java:503)
at java.scripting/javax.script.CompiledScript.eval(Unknown Source)
at se.datadosen.jalbum.ast.ScriptletNode.doEval(ScriptletNode.java:67)
at se.datadosen.jalbum.ast.ASTNode.eval(ASTNode.java:50)
at se.datadosen.jalbum.ast.GroupNode.doEval(GroupNode.java:78)
at se.datadosen.jalbum.ast.IncludeNode.doEval(IncludeNode.java:89)
at se.datadosen.jalbum.ast.ASTNode.eval(ASTNode.java:50)
at se.datadosen.jalbum.ast.GroupNode.doEval(GroupNode.java:78)
at se.datadosen.jalbum.ast.EnterNode.doEval(EnterNode.java:23)
at se.datadosen.jalbum.ast.ASTNode.eval(ASTNode.java:50)
at se.datadosen.jalbum.ast.GroupNode.doEval(GroupNode.java:78)
at se.datadosen.jalbum.ast.ASTNode.eval(ASTNode.java:50)
at se.datadosen.jalbum.AST.eval(AST.java:75)
at se.datadosen.jalbum.AlbumBean.makeIndexPages(AlbumBean.java:4168)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:1887)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:3694)
at se.datadosen.jalbum.AlbumBean.smartMakeAlbum(AlbumBean.java:3531)
at se.datadosen.jalbum.MakeAlbumTask.doInBackground(MakeAlbumTask.java:173)
at se.datadosen.jalbum.TaskManager$BackgroundTask.call(TaskManager.java:113)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)