﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6697	Unknown error	PHerison	team	"While playing around with osmosis (V0.39) I got this error when trying to select a way in JOSM from the new generated OSM-file:
{{{
Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2011-08-01 01:31:34
Last Changed Author: stoecker
Revision: 4279
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2011-07-31 23:52:49 +0200 (Sun, 31 Jul 2011)
Last Changed Rev: 4279

Identification: JOSM/1.5 (4279 de)
Memory Usage: 110 MB / 989 MB (50 MB allocated, but free)
Java version: 1.6.0_26, Sun Microsystems Inc., Java HotSpot(TM) Client VM
Operating system: Windows Vista
Dataset consistency test: No problems found

Plugin: FixAddresses (26299)
Plugin: ImportImagePlugin (26452)
Plugin: PicLayer (26498)
Plugin: buildings_tools (26254)
Plugin: download_along (26174)
Plugin: ext_tools (26284)
Plugin: licensechange (26377)
Plugin: terracer (26174)
Plugin: utilsplugin2 (26395)
Plugin: waydownloader (26174)

java.lang.NullPointerException
	at org.openstreetmap.josm.data.osm.Way.getLength(Way.java:542)
	at org.openstreetmap.josm.gui.dialogs.SelectionListDialog$SelectionListModel.setJOSMSelection(SelectionListDialog.java:626)
	at org.openstreetmap.josm.gui.dialogs.SelectionListDialog$SelectionListModel.selectionChanged(SelectionListDialog.java:705)
	at org.openstreetmap.josm.data.osm.event.SelectionEventManager.fireEvents(SelectionEventManager.java:78)
	at org.openstreetmap.josm.data.osm.event.SelectionEventManager.access$200(SelectionEventManager.java:20)
	at org.openstreetmap.josm.data.osm.event.SelectionEventManager$1.run(SelectionEventManager.java:85)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$000(Unknown Source)
	at java.awt.EventQueue$1.run(Unknown Source)
	at java.awt.EventQueue$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$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)
}}}
map.osm I got from the export-tab on http://www.openstreetmap.org/ (no error when selecting ways)

Starting osmosis with this comman-line
{{{
osmosis-latest\osmosis-0.39\bin\osmosis.bat --read-xml enableDateParsing=no file=map.osm --bounding-box top=-1.379 left=30.06761 bottom=-1.38604 right=30.07448 --way-key-value keyValueList=""boundary.administrative"" --used-node --write-xml file=map1.osm
}}}
I created map1.osm. When I try to select a way from this data I get the errormessage in JOSM.

I've attached both OSM-Files"	defect	closed	normal		Core		duplicate	osmosis	
