Modify

Opened 17 years ago

Closed 17 years ago

#743 closed defect (duplicate)

JOSM crashes after osm data download

Reported by: dieterdreist Owned by: framm
Priority: critical Milestone:
Component: Core Version: latest
Keywords: Cc:

Description

startet JOSM-latest, downloaded very few data selected with slippy-map, "download from OSM", after download continous error message (do nothing/report bug):

Path: josm
URL: http://www.openstreetmap.de/svn/josm
Repository Root: http://www.openstreetmap.de/svn/josm
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 631
Node Kind: directory
Last Changed Author: framm
Last Changed Rev: 631
Last Changed Date: 2008-05-11 03:05:11 +0200 (Sun, 11 May 2008)

java.lang.NullPointerException

at org.openstreetmap.josm.data.osm.visitor.MapPaintVisitor.drawOrderNumber(MapPaintVisitor.java:406)
at org.openstreetmap.josm.data.osm.visitor.MapPaintVisitor.visit(MapPaintVisitor.java:203)
at org.openstreetmap.josm.data.osm.Way.visit(Way.java:48)
at org.openstreetmap.josm.data.osm.visitor.MapPaintVisitor.visitAll(MapPaintVisitor.java:376)
at org.openstreetmap.josm.gui.layer.OsmDataLayer.paint(OsmDataLayer.java:183)
at org.openstreetmap.josm.gui.MapView.paint(MapView.java:211)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.BufferStrategyPaintManager.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 (1)

patch2.diff (585 bytes ) - added by Henry Loenwind 17 years ago.
fix

Download all attachments as: .zip

Change History (4)

by Henry Loenwind, 17 years ago

Attachment: patch2.diff added

fix

comment:1 by Henry Loenwind, 17 years ago

Owner: changed from framm to anonymous
Status: newassigned
Summary: JOSM crashes on startupJOSM crashes after osm data download

Documentation says "If no clip has previously been set, or if the clip has been cleared using setClip(null), this method returns null", so it'd be better we checked for null before working with the return value.

Attached a patch that does that. However, someone might want to check why no clip area was set in the first place...

comment:2 by anonymous, 17 years ago

Owner: changed from anonymous to framm
Status: assignednew

oops, I must have selected an option from teh action pane by accident. assigning the ticket back to framm...

comment:3 by anonymous, 17 years ago

Resolution: duplicate
Status: newclosed

This is a dupe of #741, and I think the patch at #741 is better because draws only the visible texts.

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.