Add null checks

This commit is contained in:
Manfred Karrer 2016-03-20 19:08:37 +01:00
parent 19eb61f30c
commit e7967cc0e1
3 changed files with 3 additions and 2 deletions

View file

@ -288,7 +288,7 @@ public final class Offer implements StoragePayload, RequiresOwnerIsOnlinePayload
@Override
public PublicKey getOwnerPubKey() {
return pubKeyRing.getSignaturePubKey();
return pubKeyRing != null ? pubKeyRing.getSignaturePubKey() : null;
}
public long getProtocolVersion() {