UrlTileDataSource: catch NPE input stream

This commit is contained in:
Emux 2017-06-04 22:38:58 +03:00
parent f669022ca3
commit 16f0d524c5

View File

@ -1,5 +1,6 @@
/* /*
* Copyright 2012 Hannes Janetzek * Copyright 2012 Hannes Janetzek
* Copyright 2017 devemux86
* *
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org). * This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
* *
@ -94,6 +95,8 @@ public class UrlTileDataSource implements ITileDataSource {
log.debug("{} Unknown host: {}", tile, e.getMessage()); log.debug("{} Unknown host: {}", tile, e.getMessage());
} catch (IOException e) { } catch (IOException e) {
log.debug("{} Network Error: {}", tile, e.getMessage()); log.debug("{} Network Error: {}", tile, e.getMessage());
} catch (Exception e) {
log.debug("{} Error: {}", tile, e.getMessage());
} finally { } finally {
boolean ok = (res == SUCCESS); boolean ok = (res == SUCCESS);