diff --git a/library/src/main/java/com/danikula/videocache/HttpUrlSource.java b/library/src/main/java/com/danikula/videocache/HttpUrlSource.java index bdd5a86..90599ba 100644 --- a/library/src/main/java/com/danikula/videocache/HttpUrlSource.java +++ b/library/src/main/java/com/danikula/videocache/HttpUrlSource.java @@ -95,8 +95,13 @@ public class HttpUrlSource implements Source { } catch (NullPointerException | IllegalArgumentException e) { String message = "Wait... but why? WTF!? " + "Really shouldn't happen any more after fixing https://github.com/danikula/AndroidVideoCache/issues/43. " + - "If you read it on your device log, please, notify me danikula@gmail.com or create issue here https://github.com/danikula/AndroidVideoCache/issues."; + "If you read it on your device log, please, notify me danikula@gmail.com or create issue here " + + "https://github.com/danikula/AndroidVideoCache/issues."; throw new RuntimeException(message, e); + } catch (ArrayIndexOutOfBoundsException e) { + LOG.error("Error closing connection correctly. Should happen only on Android L. " + + "If anybody know how to fix it, please visit https://github.com/danikula/AndroidVideoCache/issues/88. " + + "Until good solution is not know, just ignore this issue :(", e); } } }