This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 5 - Pages: 1 - Last Post: 18 Aug 21, 17:19 Last Post By: davidekholm
JeffTucker

Posts: 8,113
Registered: 31-Jan-2006
Fatal error with empty folder
Posted: 18 Aug 21, 12:37
 
  Click to reply to this thread Reply
This popped up with the latest beta core for v.25b2. If a project contains an empty folder, the album build bombs out:
An unexpected error occurred. Please see detailed description below:
 
java.lang.RuntimeException: Error processing C:\Users\jefft\xampp\htdocs\aa\F1
	at se.datadosen.jalbum.AlbumBean.registerVariables(AlbumBean.java:2603)
	at se.datadosen.jalbum.AlbumBean$RegisteringTask.call(AlbumBean.java:5999)
	at se.datadosen.jalbum.AlbumBean$RegisteringTask.call(AlbumBean.java:5980)
	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)
Caused by: java.lang.NullPointerException
	at se.datadosen.jalbum.ImageRenderer.computeRenditions(ImageRenderer.java:257)
	at se.datadosen.jalbum.ImageRenderer.<init>(ImageRenderer.java:103)
	at se.datadosen.jalbum.AlbumObjectImpl.getRenderer(AlbumObjectImpl.java:201)
	at se.datadosen.jalbum.AlbumBean.addFilteredImageSizes(AlbumBean.java:3664)
	at se.datadosen.jalbum.AlbumBean.registerVariables(AlbumBean.java:2587)
	... 6 more
It was fine before the most recent core update.

ETA: Definitely not a skin problem - this crash comes from Minimal.
JeffTucker

Posts: 8,113
Registered: 31-Jan-2006
Re: Fatal error with empty folder
Posted: 18 Aug 21, 12:39   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
More specifically.... The same error occurs if the folder is not empty, but no representing image for it has been chosen. It's the lack of a folder thumbnail that triggers the crash.
JeffTucker

Posts: 8,113
Registered: 31-Jan-2006
Re: Fatal error with empty folder
Posted: 18 Aug 21, 12:43   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Even better. :(

If you drag an image to the Thumbnail box, the crash still occurs, unless Advanced > General > Use thumbnail for folder icon has been selected.
davidekholm

Posts: 3,965
Registered: 18-Oct-2002
Re: Fatal error with empty folder
Posted: 18 Aug 21, 13:40   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Can you pass me a zip of a project that demonstrates this. It works here :-(
JeffTucker

Posts: 8,113
Registered: 31-Jan-2006
Re: Fatal error with empty folder
Posted: 18 Aug 21, 13:47   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Attachment ss009368.png (72.8 KB)
Huh. After a relaunch, no error. Before that, it was failing even with a newly-created project. Something left over from somewhere....

I'll mark this "answered," but will watch for trouble. My standard test projects often include an empty folder, for testing the icon handling in my skins (I do some odd stuff).

(Off-topic, but Minimal's handling of the icon for an empty folder is a little sub-optimal. No need for a folder overlay on a generic folder icon - see screenshot.)
davidekholm

Posts: 3,965
Registered: 18-Oct-2002
Re: Fatal error with empty folder
Posted: 18 Aug 21, 17:19   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
True. Keep your eyes on it and let me know when I can reproduce this problem.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums