Skip to content

Commit a54d04f

Browse files
committed
Pass NullProgressMonitor.INSTANCE instead of null
Signed-off-by: Taylor Smock <taylor.smock@kaart.com>
1 parent 5830806 commit a54d04f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/kaart/highwaynamemodification/DownloadAdditionalWays.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import java.util.concurrent.RunnableFuture;
1414
import java.util.concurrent.TimeUnit;
1515
import java.util.concurrent.TimeoutException;
16+
1617
import org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask;
1718
import org.openstreetmap.josm.actions.downloadtasks.DownloadParams;
1819
import org.openstreetmap.josm.data.Bounds;
@@ -24,6 +25,7 @@
2425
import org.openstreetmap.josm.gui.MainApplication;
2526
import org.openstreetmap.josm.gui.layer.Layer;
2627
import org.openstreetmap.josm.gui.layer.OsmDataLayer;
28+
import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
2729
import org.openstreetmap.josm.io.OverpassDownloadReader;
2830
import org.openstreetmap.josm.tools.Logging;
2931

@@ -142,7 +144,7 @@ public static <T extends OsmPrimitive> Future<?> getAdditionalWays(Collection<T>
142144
DownloadParams params = new DownloadParams();
143145
params.withNewLayer(true);
144146
params.withLayerName("haMoyQ4uVVcYTJR4");
145-
Future<?> future = download.download(overpass, params, bound, null);
147+
Future<?> future = download.download(overpass, params, bound, NullProgressMonitor.INSTANCE);
146148

147149
RunnableFuture<Collection<OsmPrimitive>> mergeData = new RunnableFuture<Collection<OsmPrimitive>>() {
148150
private boolean canceled = false;

0 commit comments

Comments
 (0)