From dfab4534d69fbfd2233ead27ffa1016afe88b662 Mon Sep 17 00:00:00 2001 From: Pavol Zibrita Date: Tue, 15 Nov 2011 16:46:21 +0100 Subject: [PATCH] do not upload probably corrupted file --- .../src/net/osmand/data/index/IndexBatchCreator.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DataExtractionOSM/src/net/osmand/data/index/IndexBatchCreator.java b/DataExtractionOSM/src/net/osmand/data/index/IndexBatchCreator.java index aa38512463..4823e43eea 100644 --- a/DataExtractionOSM/src/net/osmand/data/index/IndexBatchCreator.java +++ b/DataExtractionOSM/src/net/osmand/data/index/IndexBatchCreator.java @@ -602,13 +602,15 @@ public class IndexBatchCreator { poi = reader.containsPoiData(); reader.close(); } catch (Exception e) { - log.info("Exception", e); + log.info("File with not be uploaded! Exception", e); if (raf != null) { try { raf.close(); } catch (IOException e1) { } } + //do not upload probably corrupted file + return; } } summary = " index for ";