From 1f8222d84a08d211535e6fcca40767d8c4a8fb1e Mon Sep 17 00:00:00 2001 From: vshcherb Date: Wed, 4 Jan 2012 17:26:59 +0100 Subject: [PATCH] Update DataExtractionOSM/src/net/osmand/data/index/IndexBatchCreator.java --- .../src/net/osmand/data/index/IndexBatchCreator.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/DataExtractionOSM/src/net/osmand/data/index/IndexBatchCreator.java b/DataExtractionOSM/src/net/osmand/data/index/IndexBatchCreator.java index b07a139900..2f89904633 100644 --- a/DataExtractionOSM/src/net/osmand/data/index/IndexBatchCreator.java +++ b/DataExtractionOSM/src/net/osmand/data/index/IndexBatchCreator.java @@ -310,6 +310,9 @@ public class IndexBatchCreator { } else { toIndex = wgetDownload(url, saveTo); } + if(toIndex == null) { + saveTo.delete(); + } return toIndex; }