1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-24 02:12:15 -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:
Jesse Vincent 2010-12-16 02:38:54 +00:00
parent 33f5a42562
commit 0778c8ea17

View File

@ -242,6 +242,13 @@ public class AttachmentProvider extends ContentProvider
List<String> segments = uri.getPathSegments();
String dbName = segments.get(0);
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);
final AttachmentInfo attachmentInfo;
try