Ticket #5195 (new defect)

Opened 2 months ago

Last modified 2 months ago

Exception when touching relations

Reported by: Mathieu Arnold <josm@…> Owned by: anonymous
Priority: major Component: Core
Version: latest Keywords: template_report
Cc:

Description

What steps will reproduce the problem?

  1. select a streets
  2. click to create a relation
  3. add the street
  4. try to add an attribute to the relation

What is the expected result?

Well, that I'd be able to add an attribute.

What happens instead?

I get this exception :

Please provide any additional information below. Attach a screenshot if possible.

It also does that when I try to change something from an existing relationship.

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2010-06-28 01:31:42
Last Changed Author: stoecker
Revision: 3350
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2010-06-27 23:15:32 +0200 (Sun, 27 Jun 2010)
Last Changed Rev: 3350

Identification: JOSM/1.5 (3350 fr)
Memory Usage: 217 MB / 507 MB (66 MB allocated, but free)
Java version: 1.6.0_20, Apple Inc., Java HotSpot(TM) 64-Bit Server VM
Operating system: Mac OS X
Dataset consistency test: No problems found

Plugin: AddrInterpolation (21710)
Plugin: cadastre-fr (21877)
Plugin: multipoly (21988)
Plugin: remotecontrol (21706)
Plugin: validator (22044)

java.lang.NullPointerException
	at org.openstreetmap.josm.gui.tagging.TagCellRenderer.renderTagValue(TagCellRenderer.java:53)
	at org.openstreetmap.josm.gui.tagging.TagCellRenderer.getTableCellRendererComponent(TagCellRenderer.java:104)
	at javax.swing.JTable$AccessibleJTable.getAccessibleChild(JTable.java:7023)
	at javax.swing.JTable$AccessibleJTable.getAccessibleAt(JTable.java:7410)
	at javax.swing.JTable$AccessibleJTable.valueChanged(JTable.java:6923)
	at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
	at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:137)
	at javax.swing.DefaultListSelectionModel.setValueIsAdjusting(DefaultListSelectionModel.java:668)
	at javax.swing.plaf.basic.BasicTableUI$Handler.setValueIsAdjusting(BasicTableUI.java:923)
	at javax.swing.plaf.basic.BasicTableUI$Handler.mouseReleased(BasicTableUI.java:1136)
	at javax.swing.plaf.basic.BasicTableUI$MouseInputHandler.mouseReleased(BasicTableUI.java:772)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
	at java.awt.Component.processMouseEvent(Component.java:6348)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
	at java.awt.Component.processEvent(Component.java:6113)
	at java.awt.Container.processEvent(Container.java:2085)
	at java.awt.Component.dispatchEventImpl(Component.java:4714)
	at java.awt.Container.dispatchEventImpl(Container.java:2143)
	at java.awt.Component.dispatchEvent(Component.java:4544)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4282)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212)
	at java.awt.Container.dispatchEventImpl(Container.java:2129)
	at java.awt.Window.dispatchEventImpl(Window.java:2478)
	at java.awt.Component.dispatchEvent(Component.java:4544)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:635)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Attachments

Change History

Changed 2 months ago by Mathieu Arnold <josm@…>

  • status changed from new to closed
  • resolution set to fixed

Hum, I just updated to 3354 and it seems to be fixed, so, I'll close… Sorry for the noise.

Changed 2 months ago by Mathieu Arnold <josm@…>

  • status changed from closed to reopened
  • resolution fixed deleted

Ok, no, it's not fixed in 3354, so, I'm reopenning it.

Changed 2 months ago by anonymous

  • owner changed from team to Mathieu Arnold <josm@…>
  • status changed from reopened to needinfo

Please submit an example file (as small as possible) where this happens and what you need to do to get it happen.

Changed 2 months ago by Mathieu Arnold <josm@…>

  • owner changed from Mathieu Arnold <josm@…> to anonymous
  • status changed from needinfo to new

Ok, you'll need the AddrInterpolation plugin.

so, download something somewhere, doesn't matter.

  • create a street, say, unclassified, give it a name.
  • create a way with at least three nodes along that street.
  • select both ways.
  • Tool/Address interpolation.
    • tell it to create a relation
    • give the start and end numbers, say, 1 and 5.
    • check the box at the bottom so that it converts the way into nodes.

After those steps there's a good chance that if start clicking around (yes, very scientific, but well, that's what I do) and then, try to edit the relation, you'll get an exception.

You'll also definitively get exceptions if you try to undo the last step.

Add/Change #5195 (Exception when touching relations)

Author


E-mail address and user name can be saved in the Preferences.


Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from anonymous. Next status will be 'new'
Next status will be 'needinfo'The owner will change to Mathieu Arnold <josm@m.mat.cc>
as duplicate The resolution will be set to duplicate. Next status will be 'closed'The specified ticket will be cross-referenced with this ticket
Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.