Modify

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#1949 closed defect (fixed)

Pasting lots of previewsly copied Streets results in error in the last revision (r1204)

Reported by: pos_ei_don@… Owned by: framm
Priority: major Milestone:
Component: Core Version: latest
Keywords: Cc:

Description

this worked in erlier versions.

Path: trunk
URL: http://josm.openstreetmap.de/svn/trunk
Repository Root: http://josm.openstreetmap.de/svn
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 1204
Node Kind: directory
Last Changed Author: stoecker
Last Changed Rev: 1204
Last Changed Date: 2009-01-02 00:43:17 +0100 (Fri, 02 Jan 2009)

Plugins: AgPifoJ;DirectUpload;colorscheme;namefinder;openstreetbugs;openvisible;remotecontrol;slippy_map_chooser;utilsplugin;validator;wmsplugin
Plugin AgPifoJ Version: 12640
Plugin DirectUpload Version: 12601
Plugin colorscheme Version: 12588
Plugin namefinder Version: 12598
Plugin openstreetbugs Version: 12590
Plugin openvisible Version: 12588
Plugin remotecontrol Version: 12588
Plugin slippy_map_chooser Version: 12598
Plugin utilsplugin Version: 12677
Plugin validator Version: 12780
Plugin wmsplugin Version: 12609

java.lang.NullPointerException

at org.openstreetmap.josm.data.osm.visitor.MapPaintVisitor.drawSelectedRelation(MapPaintVisitor.java:309)
at org.openstreetmap.josm.data.osm.visitor.MapPaintVisitor.visit(MapPaintVisitor.java:370)
at org.openstreetmap.josm.data.osm.Relation.visit(Relation.java:25)
at org.openstreetmap.josm.data.osm.visitor.MapPaintVisitor.visitAll(MapPaintVisitor.java:781)
at org.openstreetmap.josm.gui.layer.OsmDataLayer.paint(OsmDataLayer.java:209)
at org.openstreetmap.josm.gui.MapView.paint(MapView.java:259)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JLayeredPane.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(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 (7)

comment:1 by anonymous, 16 years ago

I need a better description.

The only reason for that error could be a selected relation which has a zero member. That should not happen. Please be more specific what you did. Best would be a minimal testcase.

comment:2 by anonymous, 16 years ago

Component: unspecifiedCore
Version: latest

Note: also current stable r1198 seems to have this bug.
r1102 works as expected.

I attach an osm file. search and select all streets with "check import", center them by pressing "3", copy them, make a new layer and paste them.

comment:3 by anonymous, 16 years ago

Can't attach the file for the testcase... compressed it is 500kb, trac refuses files >256kb. why? this is sad.

comment:4 by anonymous, 16 years ago

r1191 works also! semms to be an error between 1191 and 1198

comment:5 by anonymous, 16 years ago

Send it to openstreetmap at dstoecker dot de

comment:6 by anonymous, 16 years ago

Resolution: fixed
Status: newclosed

Ok. Fixed in r1205. Bug was there since a long time, but the new revisions use that data much earlier. With old revisions you get the NPE as soon as you open one of the copied relations in relation editor :-)

comment:7 by anonymous, 16 years ago

thanks for all your work!

Modify Ticket

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