DataIntegrityProblemException: pseudo class :unconnected blocks adding tags
How to reproduce:
- Use a mapcss file with the following content
node:unconnected{}
(example file)
- Select a node or way
- Click add in the tags dialog or use Alt + A
- An error occours and you can't add tags
Happens in tested 7182 and latest 7249.
See console output for more information about the error.
org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Primitive must be part of the dataset: {Node id=-100 version=0 VT lat=0.0,lon=0.0}
at org.openstreetmap.josm.data.osm.OsmPrimitive.checkDataset(OsmPrimitive.java:334)
at org.openstreetmap.josm.data.osm.OsmPrimitive.getReferrers(OsmPrimitive.java:997)
at org.openstreetmap.josm.data.osm.OsmPrimitive.getReferrers(OsmPrimitive.java:1018)
at org.openstreetmap.josm.gui.mappaint.mapcss.Condition$PseudoClassCondition.appliesImpl(Condition.java:404)
at org.openstreetmap.josm.gui.mappaint.mapcss.Condition$PseudoClassCondition.applies(Condition.java:380)
at org.openstreetmap.josm.gui.mappaint.mapcss.Selector$AbstractSelector.matches(Selector.java:417)
at org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSStyleSource.apply(MapCSSStyleSource.java:387)
at org.openstreetmap.josm.gui.mappaint.ElemStyles.generateStyles(ElemStyles.java:328)
at org.openstreetmap.josm.gui.mappaint.MapPaintStyles.getNodeIcon(MapPaintStyles.java:144)
at org.openstreetmap.josm.gui.dialogs.properties.TagEditHelper$AddTagsDialog.suggestRecentlyAddedTags(TagEditHelper.java:687)
at org.openstreetmap.josm.gui.dialogs.properties.TagEditHelper$AddTagsDialog.<init>(TagEditHelper.java:607)
at org.openstreetmap.josm.gui.dialogs.properties.TagEditHelper.addTag(TagEditHelper.java:129)
at org.openstreetmap.josm.gui.dialogs.properties.PropertiesDialog$AddAction.actionPerformed(PropertiesDialog.java:1008)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
Change History
(8)
Component: |
Core multipoly → Core
|
Summary: |
pseudo class :unconnected blocks adding tags → RuntimeException: pseudo class :unconnected blocks adding tags
|
Description: |
modified (diff)
|
Keywords: |
mapcss unconnected exception added
|
Summary: |
RuntimeException: pseudo class :unconnected blocks adding tags → DataIntegrityProblemException: pseudo class :unconnected blocks adding tags
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Any plans on fixing this? The pseudoclass
:unconnected
is nearly unusable because of this.