Bug#1000344: josm: exception accessing preferences

2021-11-21 Thread Sebastiaan Couwenberg

Control: tags -1 pending

The change in 03-default_look_and_feel.patch hasn't worked in a long 
time, it seems that recent changes are not as tolerant for the missing 
class as before.


Dropping the patch resolves the issue.

Kind Regards,

Bas

--
 GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1



Bug#1000344: josm: exception accessing preferences

2021-11-21 Thread David Love
Package: josm
Version: 0.0.svn18303+dfsg-1~bpo11+1
Severity: important
X-Debbugs-Cc: none, Dave Love 

In a fresh install (no plugins) of the backport version I went to Edit
-> Preferences and got the exception below.  I can activate preferences
both in the 18303 https://josm.openstreetmap.de/josm-tested.jar on this
system and also the Ubuntu package from josm.openstreetmap.de/apt on
another system with Ubuntu 18.04.  I note that the josm-tested jar
doesn't report "Look and Feel not found" or warn about the font.

Using /bin/java to execute josm.
2021-11-21 21:01:18.347 INFO: Log level is at INFO (INFO, 800)
2021-11-21 21:01:20.828 INFO: Look and Feel not found: 
javax.swing.plaf.gtk.GTKLookAndFeel
^[[O2021-11-21 21:01:25.761 INFO: Obtained 82 Tag2Link rules from 
resource://META-INF/resources/webjars/tag2link/2021.3.21/index.json
2021-11-21 21:01:28.106 WARNING: Could not create font Droid Sans
2021-11-21 21:01:28.117 WARNING: Could not create font Droid Sans
2021-11-21 21:01:28.118 WARNING: Could not create font Droid Sans
2021-11-21 21:01:28.120 WARNING: Could not create font Droid Sans
2021-11-21 21:01:28.122 WARNING: Could not create font Droid Sans
2021-11-21 21:01:28.123 WARNING: Could not create font Droid Sans
2021-11-21 21:01:28.124 WARNING: Could not create font Droid Sans
2021-11-21 21:01:28.125 WARNING: Could not create font Droid Sans
2021-11-21 21:01:30.098 INFO: Changeset updater active (checks every 60 minutes 
if open changesets have been closed)
2021-11-21 21:01:35.518 SEVERE: Handled by bug report queue: 
java.lang.NullPointerException
java.lang.NullPointerException
at 
org.openstreetmap.josm.gui.preferences.display.LafPreference$LafListCellRenderer.getListCellRendererComponent(LafPreference.java:68)
at 
org.openstreetmap.josm.gui.preferences.display.LafPreference$LafListCellRenderer.getListCellRendererComponent(LafPreference.java:62)
at 
java.desktop/javax.swing.plaf.basic.BasicComboBoxUI.paintCurrentValue(BasicComboBoxUI.java:1269)
at 
java.desktop/javax.swing.plaf.metal.MetalComboBoxUI.paintCurrentValue(MetalComboBoxUI.java:97)
at 
java.desktop/javax.swing.plaf.basic.BasicComboBoxUI.paint(BasicComboBoxUI.java:943)
at 
java.desktop/javax.swing.plaf.metal.MetalComboBoxUI.paint(MetalComboBoxUI.java:69)
at 
java.desktop/javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
at 
java.desktop/javax.swing.JComponent.paintComponent(JComponent.java:797)
at 
org.openstreetmap.josm.gui.widgets.JosmComboBox.paintComponent(JosmComboBox.java:330)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1074)
at 
java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1083)
at 
java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1083)
at java.desktop/javax.swing.JViewport.paint(JViewport.java:737)
at 
java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1083)
at 
java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1083)
at 
java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1083)
at 
java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1083)
at 
java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1083)
at 
java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1083)
at java.desktop/javax.swing.JLayeredPane.paint(JLayeredPane.java:590)
at 
java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
at 
java.desktop/javax.swing.JComponent.paintToOffscreen(JComponent.java:5262)
at 
java.desktop/javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:246)
at 
java.desktop/javax.swing.RepaintManager.paint(RepaintManager.java:1323)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1060)
at 
java.desktop/java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39)
at 
java.desktop/sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:78)
at 
java.desktop/sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:115)
at java.desktop/java.awt.Container.paint(Container.java:2002)
at java.desktop/java.awt.Window.paint(Window.java:3940)
at