mirror of
https://github.com/moparisthebest/Conversations
synced 2025-01-06 03:08:03 -05:00
catch bug in guessContentType
This commit is contained in:
parent
8d3323e384
commit
dd5101ff5c
@ -171,7 +171,12 @@ public class UIHelper {
|
|||||||
if (path == null) {
|
if (path == null) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
final String mime = URLConnection.guessContentTypeFromName(path);
|
final String mime;
|
||||||
|
try {
|
||||||
|
mime = URLConnection.guessContentTypeFromName(path);
|
||||||
|
} catch (final StringIndexOutOfBoundsException ignored) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
if (mime == null) {
|
if (mime == null) {
|
||||||
return "";
|
return "";
|
||||||
} else if (mime.startsWith("audio/")) {
|
} else if (mime.startsWith("audio/")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user