]> nmode's Git Repositories - signal-cli/commitdiff
Use File() correctly
authorAsamK <asamk@gmx.de>
Wed, 30 Dec 2015 16:54:48 +0000 (17:54 +0100)
committerAsamK <asamk@gmx.de>
Wed, 30 Dec 2015 17:11:54 +0000 (18:11 +0100)
src/main/java/org/asamk/textsecure/Manager.java

index f0714ce15f25f26dc07e092381a418421e63d96c..dfae49de17d4532a38ffc525e83dddaf6fdb34de 100644 (file)
@@ -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 {