Skip to content
Snippets Groups Projects
Commit 93e71a75 authored by bontric's avatar bontric
Browse files

Fixes

parent cac7ee40
Branches
No related tags found
No related merge requests found
Pipeline #
......@@ -252,7 +252,7 @@ public abstract class AbstractMailboxSession implements Runnable {
StreamContext ctx =
keyManager
.getStreamContext(targetContactId, MailboxConstants.ID);
.getStreamContext(c, MailboxConstants.ID);
if (ctx == null)
throw new IOException("Could not allocated stream context");
......
......@@ -3,6 +3,7 @@ package org.briarproject.bramble.mailbox;
import org.briarproject.bramble.api.contact.ContactId;
import org.briarproject.bramble.api.db.DatabaseComponent;
import org.briarproject.bramble.api.db.DbException;
import org.briarproject.bramble.api.mailbox.MailboxInfo;
import org.briarproject.bramble.api.sync.SyncSessionFactory;
import org.briarproject.bramble.api.transport.KeyManager;
import org.briarproject.bramble.api.transport.StreamContext;
......@@ -75,6 +76,8 @@ public class PrivateMailboxSession extends AbstractMailboxSession {
return;
}
if (encryptedStream == null)
return;
MailboxRequest req =
new MailboxRequestStore(mailboxInfo.getAliasId(),
encryptedStream);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment