aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/eu/siacs/conversations/http/HttpConnection.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/http/HttpConnection.java b/src/main/java/eu/siacs/conversations/http/HttpConnection.java
index 24eb5ed3..147ac42f 100644
--- a/src/main/java/eu/siacs/conversations/http/HttpConnection.java
+++ b/src/main/java/eu/siacs/conversations/http/HttpConnection.java
@@ -229,6 +229,8 @@ public class HttpConnection implements Downloadable {
connection.connect();
BufferedInputStream is = new BufferedInputStream(
connection.getInputStream());
+ file.getParentFile().mkdirs();
+ file.createNewFile();
OutputStream os = file.createOutputStream();
if (os == null) {
throw new IOException();