1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04: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:52:20 +00:00
parent 6a9ec14f33
commit 629b23027f

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