src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java 🔗
@@ -213,7 +213,7 @@ public class HttpDownloadConnection implements Transferable {
             message.setDeleted(true);
         }
         message.setTransferable(null);
-        cb.accept(file);
+        if (cb != null) cb.accept(file);
         mXmppConnectionService.updateMessage(message);
         mHttpConnectionManager.finishConnection(this);
         final boolean notifyAfterScan = notify;