Permlink Replies: 3 - Pages: 1 - Last Post: 18 Aug 26, 12:52 Last Post By: davidekholm
fodohgraf

Posts: 52
Registered: 18-Dec-2012
xception in thread "AWT-EventQueue-0" java.lang.NullPointerException:
Posted: 17 Aug 26, 10:26
  Click to reply to this thread Reply
Hello,
I like jAlbum very much and thus I'm using it since many years on Desktops and Laptops running Intel or AMD cpus. Last weekend I started to use it on a raspberry pi with ARM cpu.

Linux kiwi 6.12.62+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.62-1+rpt1 (2025-12-18) aarch64 GNU/Linux
jAlbum 36 with built in java 23 64 Bit


I did this, because I want to work on an album from two different Linux systems. Thus the jAlbum is displayed e.g. on this system:
Linux matheo 7.0.0-28-generic #28~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul  1 15:50:57 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

This works in general fine. Today I included an empty page (.htt file). When I try to edit that .htt file a new window opens which is unfortunately almost empty, see screenshot.

System console shows a bunch of similar (looking) java.lang.NullPointerExceptions:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "java.util.Map.keySet()" because "<parameter1>" is null
	at java.desktop/sun.java2d.SunGraphics2D.setRenderingHints(Unknown Source)
	at net.jalbum.editor.JTextPadDocument$1.paintComponent(JTextPadDocument.java:111)
	at java.desktop/javax.swing.JComponent.paint(Unknown Source)
	at java.desktop/javax.swing.JComponent.paintChildren(Unknown Source)
	at java.desktop/javax.swing.JComponent.paint(Unknown Source)
	at java.desktop/javax.swing.JViewport.paint(Unknown Source)
	at java.desktop/javax.swing.JComponent.paintChildren(Unknown Source)
	at java.desktop/javax.swing.JComponent.paint(Unknown Source)
	at java.desktop/javax.swing.JComponent.paintChildren(Unknown Source)
	at java.desktop/javax.swing.JComponent.paint(Unknown Source)
	at java.desktop/javax.swing.JComponent.paintChildren(Unknown Source)
	at java.desktop/javax.swing.JComponent.paint(Unknown Source)
	at java.desktop/javax.swing.JComponent.paintChildren(Unknown Source)
	at java.desktop/javax.swing.JComponent.paint(Unknown Source)
	at java.desktop/javax.swing.JComponent.paintToOffscreen(Unknown Source)
	at java.desktop/javax.swing.RepaintManager$PaintManager.paintDoubleBufferedImpl(Unknown Source)
	at java.desktop/javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
	at java.desktop/javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
	at java.desktop/javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
	at java.desktop/javax.swing.RepaintManager.paint(Unknown Source)
	at java.desktop/javax.swing.JComponent._paintImmediately(Unknown Source)
	at java.desktop/javax.swing.JComponent.paintImmediately(Unknown Source)
	at java.desktop/javax.swing.RepaintManager$4.run(Unknown Source)
	at java.desktop/javax.swing.RepaintManager$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
	at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
	at java.desktop/javax.swing.RepaintManager.prePaintDirtyRegions(Unknown Source)
	at java.desktop/javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
 


This is the link to the pubshlished album:
https://www.fodoh.de/Zonensystem_in_digital/zonensystem_digital/index.html

Thank you for your support.
davidekholm

Posts: 4,028
Registered: 18-Oct-2002
Re: xception in thread "AWT-EventQueue-0" java.lang.NullPointerException:
Posted: 17 Aug 26, 13:57   in response to: fodohgraf in response to: fodohgraf
  Click to reply to this thread Reply
Here's a fix for that issue. Put this file within jAlbum's "ext" folder:

https://jalbum.net/download/JTextPad.jar
fodohgraf

Posts: 52
Registered: 18-Dec-2012
Re: xception in thread "AWT-EventQueue-0" java.lang.NullPointerException:
Posted: 17 Aug 26, 15:05   in response to: davidekholm in response to: davidekholm
  Click to reply to this thread Reply
Hello David,
it works. This is an outstanding performance.

As I stopped my profession as a photographer and my update plan ended anyway a few days ago, I just bought a new standard license with the user name fodoh as a small thank you.

Best regards,
fodoh(graf)
davidekholm

Posts: 4,028
Registered: 18-Oct-2002
Re: xception in thread "AWT-EventQueue-0" java.lang.NullPointerException:
Posted: 18 Aug 26, 12:52   in response to: fodohgraf in response to: fodohgraf
  Click to reply to this thread Reply
Thank you. Much appreciated!
Legend
Forum admins
Helpful Answer
Correct Answer

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