Modify

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#9530 closed defect (fixed)

Exception pressing "A"

Reported by: malenki Owned by: Don-vip
Priority: blocker Milestone: 14.01
Component: Core Version: latest
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. run JOSM
  2. create new layer (ctrl+n)
  3. press A

What is the expected result?

Ability to draw something.

What happens instead?

The exception below.

Please provide any additional information below.

java version "1.7.0_45"
OpenJDK Runtime Environment (IcedTea 2.4.3) (7u45-2.4.3-4)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)

Debian Sid 3.12-6.towo-siduction-amd64

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2014-01-04 14:03:34
Last Changed Author: Don-vip
Revision: 6624
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2014-01-04 14:56:55 +0100 (Sat, 04 Jan 2014)
Last Changed Rev: 6624

Identification: JOSM/1.5 (6624 de) Linux Debian GNU/Linux unstable (sid)
Memory Usage: 303 MB / 12444 MB (207 MB allocated, but free)
Java version: 1.7.0_45, Oracle Corporation, OpenJDK 64-Bit Server VM
Java package: openjdk-7-jre:amd64-7u45-2.4.3-4
VM arguments: [-Xmx14000M, -Dsun.java2d.opengl=false]
Dataset consistency test: No problems found


java.lang.NullPointerException
	at org.openstreetmap.josm.data.Preferences.getColor(Preferences.java:880)
	at org.openstreetmap.josm.data.Preferences.getColor(Preferences.java:826)
	at org.openstreetmap.josm.actions.mapmode.DrawAction.enterMode(DrawAction.java:212)
	at org.openstreetmap.josm.gui.MapFrame.selectMapMode(MapFrame.java:381)
	at org.openstreetmap.josm.gui.MapFrame.selectMapMode(MapFrame.java:360)
	at org.openstreetmap.josm.actions.mapmode.MapMode.actionPerformed(MapMode.java:82)
	at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1661)
	at javax.swing.JComponent.processKeyBinding(JComponent.java:2869)
	at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:307)
	at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:263)
	at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2961)
	at javax.swing.JComponent.processKeyBindings(JComponent.java:2953)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2832)
	at java.awt.Component.processEvent(Component.java:6282)
	at java.awt.Container.processEvent(Container.java:2229)
	at java.awt.Component.dispatchEventImpl(Component.java:4861)
	at java.awt.Container.dispatchEventImpl(Container.java:2287)
	at java.awt.Component.dispatchEvent(Component.java:4687)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1895)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:762)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1027)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:899)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:727)
	at java.awt.Component.dispatchEventImpl(Component.java:4731)
	at java.awt.Container.dispatchEventImpl(Container.java:2287)
	at java.awt.Window.dispatchEventImpl(Window.java:2719)
	at java.awt.Component.dispatchEvent(Component.java:4687)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
	at java.awt.EventQueue.access$200(EventQueue.java:103)
	at java.awt.EventQueue$3.run(EventQueue.java:694)
	at java.awt.EventQueue$3.run(EventQueue.java:692)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.awt.EventQueue$4.run(EventQueue.java:708)
	at java.awt.EventQueue$4.run(EventQueue.java:706)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

Attachments (0)

Change History (8)

comment:1 by malenki, 10 years ago

Priority: normalblocker

comment:2 by malenki, 10 years ago

Version: latest

comment:3 by skorasaurus, 10 years ago

I can also reproduce this as well.

java version "1.7.0_25"
OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.12.04.2)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2014-01-04 14:03:34
Last Changed Author: Don-vip
Revision: 6624
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2014-01-04 14:56:55 +0100 (Sat, 04 Jan 2014)
Last Changed Rev: 6624

Identification: JOSM/1.5 (6624 en) Linux Ubuntu 12.04.3 LTS
Memory Usage: 328 MB / 1658 MB (230 MB allocated, but free)
Java version: 1.7.0_25, Oracle Corporation, OpenJDK 64-Bit Server VM
Java package: openjdk-7-jre:amd64-7u25-2.3.10-1ubuntu0.12.04.2
Dataset consistency test: No problems found

Plugin: DirectUpload (30060)
Plugin: ImageWayPoint (29854)
Plugin: OpeningHoursEditor (30117)
Plugin: buildings_tools (30057)
Plugin: colorscheme (29854)
Plugin: dataimport (29854)
Plugin: download_along (30017)
Plugin: geochat (29851)
Plugin: gpxfilter (29854)
Plugin: imagery_offset_db (29832)
Plugin: imageryadjust (29854)
Plugin: lakewalker (29854)
Plugin: measurement (30104)
Plugin: mirrored_download (30106)
Plugin: notes (v0.8)
Plugin: openstreetbugs (30004)
Plugin: openvisible (29854)
Plugin: pbf (29854)
Plugin: photo_geotagging (30110)
Plugin: poly (29854)
Plugin: reltoolbox (30145)
Plugin: reverter (30031)
Plugin: utilsplugin2 (30017)
Plugin: waydownloader (29908)
Plugin: waypoint_search (29854)

java.lang.NullPointerException
	at org.openstreetmap.josm.data.Preferences.getColor(Preferences.java:880)
	at org.openstreetmap.josm.data.Preferences.getColor(Preferences.java:826)
	at org.openstreetmap.josm.actions.mapmode.DrawAction.enterMode(DrawAction.java:212)
	at org.openstreetmap.josm.gui.MapFrame.selectMapMode(MapFrame.java:381)
	at org.openstreetmap.josm.gui.MapFrame.selectMapMode(MapFrame.java:360)
	at org.openstreetmap.josm.actions.mapmode.MapMode.actionPerformed(MapMode.java:82)
	at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1661)
	at javax.swing.JComponent.processKeyBinding(JComponent.java:2870)
	at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:306)
	at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:263)
	at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2962)
	at javax.swing.JComponent.processKeyBindings(JComponent.java:2954)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2833)
	at java.awt.Component.processEvent(Component.java:6282)
	at java.awt.Container.processEvent(Container.java:2229)
	at java.awt.Component.dispatchEventImpl(Component.java:4861)
	at java.awt.Container.dispatchEventImpl(Container.java:2287)
	at java.awt.Component.dispatchEvent(Component.java:4687)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1895)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:762)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1027)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:899)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:727)
	at java.awt.Component.dispatchEventImpl(Component.java:4731)
	at java.awt.Container.dispatchEventImpl(Container.java:2287)
	at java.awt.Window.dispatchEventImpl(Window.java:2719)
	at java.awt.Component.dispatchEvent(Component.java:4687)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
	at java.awt.EventQueue.access$200(EventQueue.java:103)
	at java.awt.EventQueue$3.run(EventQueue.java:694)
	at java.awt.EventQueue$3.run(EventQueue.java:692)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.awt.EventQueue$4.run(EventQueue.java:708)
	at java.awt.EventQueue$4.run(EventQueue.java:706)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

Last edited 10 years ago by skorasaurus (previous) (diff)

comment:4 by Don-vip, 10 years ago

Milestone: 14.01
Owner: changed from team to Don-vip
Status: newassigned

comment:5 by Don-vip, 10 years ago

Resolution: fixed
Status: assignedclosed

In 6626/josm:

fix #9530 - NPE in color preferences

comment:6 by Don-vip, 10 years ago

New build in progress, available in some minutes.

comment:7 by malenki, 10 years ago

Thanks for the quick repair.

comment:8 by skorasaurus, 10 years ago

Thank you so much for the prompt fix! :)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Don-vip.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.