Skip to content

Commit 355e83b

Browse files
committed
#88: ignore ArrayIndexOutOfBoundsException on Android L while disconnecting connection
1 parent c300b2e commit 355e83b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

library/src/main/java/com/danikula/videocache/HttpUrlSource.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,13 @@ public void close() throws ProxyCacheException {
9595
} catch (NullPointerException | IllegalArgumentException e) {
9696
String message = "Wait... but why? WTF!? " +
9797
"Really shouldn't happen any more after fixing https://github.com/danikula/AndroidVideoCache/issues/43. " +
98-
"If you read it on your device log, please, notify me danikula@gmail.com or create issue here https://github.com/danikula/AndroidVideoCache/issues.";
98+
"If you read it on your device log, please, notify me danikula@gmail.com or create issue here " +
99+
"https://github.com/danikula/AndroidVideoCache/issues.";
99100
throw new RuntimeException(message, e);
101+
} catch (ArrayIndexOutOfBoundsException e) {
102+
LOG.error("Error closing connection correctly. Should happen only on Android L. " +
103+
"If anybody know how to fix it, please visit https://github.com/danikula/AndroidVideoCache/issues/88. " +
104+
"Until good solution is not know, just ignore this issue :(", e);
100105
}
101106
}
102107
}

0 commit comments

Comments
 (0)