Modify

Opened 9 years ago

Closed 9 years ago

#12157 closed defect (fixed)

[Conflation Plugin] NullPointerException when the conflation layer is added to the map

Reported by: coso Owned by: team
Priority: normal Milestone:
Component: Plugin conflation Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. Install "conflation" plugin and restart JOSM
  2. open the attached file subject.osm
  3. open the attached file reference.osm
  4. click "Configure" button on Conflation's toggle dialog
  5. select the way in reference.osm layer and click "Reference --> Freeze"
  6. select the way in subject.osm layer and click "Subject --> Freeze"
  7. click "Generate matches"

What is the expected result?

Matches are generated, "Conflation" layer is created and added to the map.

What happens instead?

Matches are generated, "Conflation" layer is created but there is a NullPointerException and the layer is not added to the map.

Please provide any additional information below.

Proposed solution

Move Main.main.addLayer(conflationLayer) after conflationLayer.setMatches(matches)

URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2015-11-24 00:04:12 +0100 (Tue, 24 Nov 2015)
Build-Date:2015-11-23 23:14:21
Revision:9060
Relative:URL: ^/trunk

Identification: JOSM/1.5 (9060 it) Linux Ubuntu 15.10
Memory Usage: 335 MB / 876 MB (243 MB allocated, but free)
Java version: 1.7.0_91, Oracle Corporation, OpenJDK 64-Bit Server VM
Java package: openjdk-7-jre:amd64-7u91-2.6.3-0ubuntu0.15.10.1
VM arguments: [-Djosm.restart=true, -Djava.net.useSystemProxies=true]
Dataset consistency test: No problems found

Plugins:
- conflation (0.1.8)
- jts (31772)
- utilsplugin2 (31772)

Attachments (2)

subject.osm (632 bytes ) - added by coso 9 years ago.
reference.osm (631 bytes ) - added by coso 9 years ago.

Download all attachments as: .zip

Change History (3)

by coso, 9 years ago

Attachment: subject.osm added

by coso, 9 years ago

Attachment: reference.osm added

comment:1 by Don-vip, 9 years ago

Resolution: fixed
Status: newclosed

fixed in v0.1.9

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
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.