mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Do not crash if Android doesn't know the mimetype of the file
This commit is contained in:
parent
0978a2c11a
commit
10b7a97f66
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ public class ShareActivity extends AuthenticatedActivity {
|
|||
|
||||
String extension = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType);
|
||||
|
||||
if(!title.toLowerCase().endsWith(extension.toLowerCase())) {
|
||||
if(extension != null && !title.toLowerCase().endsWith(extension.toLowerCase())) {
|
||||
title += "." + extension;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue