From fb36613402ee70e9e17d848e896689017d7ccdad Mon Sep 17 00:00:00 2001 From: AsamK Date: Wed, 30 Dec 2015 17:54:48 +0100 Subject: [PATCH] Use File() correctly --- src/main/java/org/asamk/textsecure/Manager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/asamk/textsecure/Manager.java b/src/main/java/org/asamk/textsecure/Manager.java index f0714ce1..dfae49de 100644 --- a/src/main/java/org/asamk/textsecure/Manager.java +++ b/src/main/java/org/asamk/textsecure/Manager.java @@ -535,7 +535,7 @@ class Manager implements TextSecure { } public File getAttachmentFile(long attachmentId) { - return new File(attachmentsPath + "/" + attachmentId); + return new File(attachmentsPath, attachmentId + ""); } private File retrieveAttachment(TextSecureAttachmentPointer pointer) throws IOException, InvalidMessageException {