mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-22 15:48:50 -05:00
Provisional fix for Issue 2760 in k9mail: New NPE from market. showing up a lot on 3.400
This commit is contained in:
parent
6a9ec14f33
commit
629b23027f
@ -242,6 +242,13 @@ public class AttachmentProvider extends ContentProvider
|
|||||||
List<String> segments = uri.getPathSegments();
|
List<String> segments = uri.getPathSegments();
|
||||||
String dbName = segments.get(0);
|
String dbName = segments.get(0);
|
||||||
String id = segments.get(1);
|
String id = segments.get(1);
|
||||||
|
|
||||||
|
// Versions of K-9 before 3.400 had a database name here, not an
|
||||||
|
// account UID, so implement a bit of backcompat
|
||||||
|
if (dbName.endsWith(".db")) {
|
||||||
|
dbName = dbName.substring(0, dbName.length()-3);
|
||||||
|
}
|
||||||
|
|
||||||
//String format = segments.get(2);
|
//String format = segments.get(2);
|
||||||
final AttachmentInfo attachmentInfo;
|
final AttachmentInfo attachmentInfo;
|
||||||
try
|
try
|
||||||
|
Loading…
Reference in New Issue
Block a user