-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
Description
Describe the bug
Running the Lite setup jar using openjdk 24.0.1 on Arch Linux fails with a nullpointer exception.
Exception in thread "main" java.lang.ExceptionInInitializerError
at installer.tree.JarEntryNode.getRenderer(JarEntryNode.java:294)
at installer.tree.JarFileTreeRenderer.getTreeCellRendererComponent(JarFileTreeRenderer.java:22)
at java.desktop/javax.swing.plaf.basic.BasicTreeUI$NodeDimensionsHandler.getNodeDimensions(Unknown Source)
at java.desktop/javax.swing.tree.AbstractLayoutCache.getNodeDimensions(Unknown Source)
at java.desktop/javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.updatePreferredSize(Unknown Source)
at java.desktop/javax.swing.tree.VariableHeightLayoutCache.updateNodeSizes(Unknown Source)
at java.desktop/javax.swing.tree.VariableHeightLayoutCache.invalidateSizes(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicTreeUI.setCellRenderer(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicTreeUI$Handler.propertyChange(Unknown Source)
at java.desktop/java.beans.PropertyChangeSupport.fire(Unknown Source)
at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at java.desktop/java.awt.Component.firePropertyChange(Unknown Source)
at java.desktop/javax.swing.JTree.setCellRenderer(Unknown Source)
at installer.screens.BrowseFilesPanel.<init>(BrowseFilesPanel.java:68)
at installer.mainframe.InstallerTabs.<init>(InstallerTabs.java:48)
at installer.mainframe.InstallerTabs.main(InstallerTabs.java:192)
Caused by: java.lang.NullPointerException: Cannot invoke "javax.swing.Icon.getIconHeight()" because the return value of "javax.swing.UIManager.getIcon(Object)" is null
at installer.tree.JarEntryRenderer.<clinit>(JarEntryRenderer.java:38)
... 17 more
To Reproduce
Download the latest Lite release from the Releases page and run it in Arch Linux using java -jar <jar> .
Expected behavior
The installer should run without crashing.
Desktop (please delete as appropriate):
- Linux
Additional context
I looked into the installer code where it was crashing, and noticed that 2 years ago there was a fix for this nullpointer exception, so perhaps the releases were built using an older version of the installer. It doesn't seem like the releases are built through CI, and I'm not familiar enough with these built tools to easily figure out how they are built.