Opened 16 years ago
Closed 16 years ago
#2655 closed defect (fixed)
NPE when attempting to combine ways
Reported by: | anonymous | Owned by: | anonymous |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Core | Version: | |
Keywords: | Cc: |
Description (last modified by )
If you look at this bit of map:
http://www.openstreetmap.org/?lat=53.026997&lon=-2.78187&zoom=19
Select the tiny segment just below the fork and the segment below that and try and
combine them with 'c' and you get:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0
Created-By: 10.0-b23 (Sun Microsystems Inc.)
Main-class: JOSM
Main-Version: 1620 SVN
Main-Date: 2009-05-24T21:19:53.005289ZJava version: 1.6.0_07
Plugins: DirectUpload;colorscheme;measurement;openvisible;tageditor;utilsplugin;validator;wmsplugin
Plugin DirectUpload Version: 14133
Plugin colorscheme Version: 14233
Plugin measurement Version: 14015
Plugin openvisible Version: 14233
Plugin tageditor Version: 14523
Plugin utilsplugin Version: 14356
Plugin validator Version: 14123
Plugin wmsplugin Version: 14120
java.lang.NullPointerException
at org.openstreetmap.josm.tools.Pair.hashCode(Pair.java:17)
at java.util.HashMap.getEntry(HashMap.java:344)
at java.util.HashMap.containsKey(HashMap.java:335)
at org.openstreetmap.josm.actions.CombineWayAction.actionPerformed(CombineWayAction.java:92)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2849)
at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:267)
at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:216)
at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2926)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2918)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2812)
at java.awt.Component.processEvent(Component.java:5818)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:697)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:962)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:834)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:661)
at java.awt.Component.dispatchEventImpl(Component.java:4285)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Attachments (1)
Change History (6)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
Description: | modified (diff) |
---|---|
Owner: | changed from | to
Status: | new → needinfo |
Could not reproduce. Please attach OSM file which allows to reproduce problem.
comment:3 by , 16 years ago
It's probably too big to upload (20MByte). Here's the script I use to download the area from XAPI, I hope you use a *nix machine and can run this.
#!/bin/sh
BOUNDS=-3.25,52.75,-2.5,53.2
#HOST=osmxapi.hypercube.telascience.org
HOST=www.informationfreeway.org
#HOST=xapi.openstreetmap.org
if wget -N http://$HOST/api/0.6/map?bbox=$BOUNDS -O local-area.osm.tmp ; then
mv -f local-area.osm local-area.osm.last
mv local-area.osm.tmp local-area.osm
sed -i 2s/version=\'0.6\'/version=\'0.5\'/ local-area.osm
else
rm -f local-area.osm.tmp
fi
by , 16 years ago
Attachment: | download-local-area added |
---|
comment:5 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | needinfo → closed |
In r1621. The problem was XAPI not the size of data.
Just noticed that if you only download the region specified above, the ways are combined without
a problem.
But if you have a much larger region, there is a problem. Now I wonder if this is because those ways are members of a route relation "Bishop Bennet Way" and when I edit the much larger region, there are multiple relations with the same name included in that region.