Commit 25f73ac5 authored by Simon Legner's avatar Simon Legner

JOSM/wikipedia: NPE when searching w/o dataset - fixes #josm13716

git-svn-id: https://svn.openstreetmap.org/applications/editors/josm/plugins/wikipedia@33017 b9d5c4c9-76e1-0310-9c85-f3177eceb1e4
parent 54f1a724
......@@ -70,7 +70,7 @@ public class WikipediaToggleDialog extends ToggleDialog implements ActiveLayerCh
@Override
public void mouseClicked(MouseEvent e) {
if (e.getClickCount() == 2 && getSelectedValue() != null) {
if (e.getClickCount() == 2 && getSelectedValue() != null && Main.getLayerManager().getEditDataSet() != null) {
final WikipediaEntry entry = getSelectedValue();
if (entry.coordinate != null) {
BoundingXYVisitor bbox = new BoundingXYVisitor();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment