Modify

Opened 11 years ago

Closed 11 years ago

#8692 closed defect (fixed)

NPE in ImproveWayAccuracyAction/UndoRedoHandler

Reported by: kr12 Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: undo Cc:

Description (last modified by Don-vip)

Reproduce with plugin FastDraw (ImproveWayAccuracy)

  1. select way, with some point of it out of downloaded area
  2. click w
  3. press alt
  4. mouse click in out of downloaded area near way
  5. select no in dialog
Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2013-05-08 01:34:29
Last Changed Author: stoecker
Revision: 5939
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2013-05-07 14:05:08 +0200 (Tue, 07 May 2013)
Last Changed Rev: 5939

Identification: JOSM/1.5 (5939 en) Windows 7 64-Bit
Memory Usage: 1006 MB / 1006 MB (636 MB allocated, but free)
Java version: 1.7.0_17, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
VM arguments: [-XX:+UseConcMarkSweepGC, -XX:+DisableExplicitGC, -XX:+UseAdaptiveGCBoundary, -XX:MaxGCPauseMillis=500, -XX:-UseGCOverheadLimit, -XX:SurvivorRatio=12, -Xnoclassgc, -XX:UseSSE=3, -Xincgc, -Xmx1G, -Xms1G]
Dataset consistency test: No problems found

Plugin: FastDraw (29532)
Plugin: alignways (29435)
Plugin: buildings_tools (29435)
Plugin: conflation (0.1.6)
Plugin: continuosDownload (28565)
Plugin: contourmerge (1003)
Plugin: imagery_offset_db (29467)
Plugin: jts (29435)
Plugin: junctionchecking (29525)
Plugin: merge-overlap (29435)
Plugin: reltoolbox (29535)
Plugin: reverter (29561)
Plugin: tagging-preset-tester (29435)
Plugin: utilsplugin2 (29435)


java.lang.NullPointerException
	at org.openstreetmap.josm.data.UndoRedoHandler.addNoRedraw(UndoRedoHandler.java:36)
	at org.openstreetmap.josm.data.UndoRedoHandler.add(UndoRedoHandler.java:58)
	at org.openstreetmap.josm.actions.mapmode.ImproveWayAccuracyAction.mouseReleased(ImproveWayAccuracyAction.java:471)
	at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$200(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

Attachments (0)

Change History (2)

comment:1 by Don-vip, 11 years ago

Description: modified (diff)
Summary: Another bug related to Undo functionsNPE in ImproveWayAccuracyAction/UndoRedoHandler

comment:2 by Don-vip, 11 years ago

Resolution: fixed
Status: newclosed

In 5947/josm:

fix #8692 - Handle null DeleteCommands in JoinAreaAction and ImproveWayAccuracyAction

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
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.