Check if offer id is null before republishing

This commit is contained in:
Manfred Karrer 2016-11-19 16:07:18 +01:00
parent c7e6c0309a
commit 90565bf43b

View File

@ -444,7 +444,7 @@ public class OpenOfferManager implements PeerManager.Listener, DecryptedDirectMe
final long maxDelay = (i + 2) * delay;
final OpenOffer openOffer = openOffersList.get(i);
UserThread.runAfterRandomDelay(() -> {
if (openOffers.contains(openOffer))
if (openOffers.contains(openOffer) && openOffer.getId() != null)
republishOffer(openOffer);
}, minDelay, maxDelay, TimeUnit.MILLISECONDS);
}