Modify ↓
Opened 16 years ago
Closed 16 years ago
#1456 closed defect (fixed)
JOSM crashes when default color button is clicked
Reported by: | anonymous | Owned by: | framm |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Core | Version: | |
Keywords: | Cc: |
Description
I uploaded a GPX trail from Nokia SportsTracker application, and opened it in JOSM. Nothing appeared on screen (my first use of JOSM). I figured the foreground & background colors might be same so I right clicked on my GPX trail under Layers, then Customize color and then clicked the Default button on the Swatches tab, which caused a crash. With this output:
Path: trunk URL: http://josm.openstreetmap.de/svn/trunk Repository Root: http://josm.openstreetmap.de/svn Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Revision: 805 Node Kind: directory Last Changed Author: stoecker Last Changed Rev: 805 Last Changed Date: 2008-08-18 01:27:58 +0200 (Mon, 18 Aug 2008) java.lang.NullPointerException at org.openstreetmap.josm.tools.ColorHelper.color2html(ColorHelper.java:32) at org.openstreetmap.josm.data.Preferences.putColor(Preferences.java:325) at org.openstreetmap.josm.gui.layer.GpxLayer$2.actionPerformed(GpxLayer.java:149) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.AbstractButton.doClick(AbstractButton.java:357) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1170) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1211) at java.awt.Component.processMouseEvent(Component.java:6038) at javax.swing.JComponent.processMouseEvent(JComponent.java:3260) at java.awt.Component.processEvent(Component.java:5803) at java.awt.Container.processEvent(Container.java:2058) at java.awt.Component.dispatchEventImpl(Component.java:4410) at java.awt.Container.dispatchEventImpl(Container.java:2116) at java.awt.Component.dispatchEvent(Component.java:4240) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916) at java.awt.Container.dispatchEventImpl(Container.java:2102) at java.awt.Window.dispatchEventImpl(Window.java:2429) at java.awt.Component.dispatchEvent(Component.java:4240) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
I'm running OpenSuse 10.3 on x86 and with Sun's JVM version 1.6
Attachments (0)
Note:
See TracTickets
for help on using tickets.
Fixed in latest.